C# Convert ToInt32(Byte)
Description
Convert ToInt32(Byte)
converts the value of the specified
8-bit unsigned integer to the equivalent 32-bit signed integer.
Syntax
Convert.ToInt32(Byte)
has the following syntax.
public static int ToInt32(
byte value
)
Parameters
Convert.ToInt32(Byte)
has the following parameters.
value
- The 8-bit unsigned integer to convert.
Returns
Convert.ToInt32(Byte)
method returns A 32-bit signed integer that is equivalent to value.
Example
/* w w w . j a va2 s.c om*/
using System;
public class MainClass{
public static void Main(String[] argv){
Console.WriteLine(Convert.ToInt32((Byte)12));
}
}
The code above generates the following result.