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