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