C# Convert ToUInt32(Object)
Description
Convert ToUInt32(Object)
converts the value of the specified
object to a 32-bit unsigned integer.
Syntax
Convert.ToUInt32(Object)
has the following syntax.
[CLSCompliantAttribute(false)]
public static uint ToUInt32(
Object value
)
Parameters
Convert.ToUInt32(Object)
has the following parameters.
value
- An object that implements the IConvertible interface, or null.
Returns
Convert.ToUInt32(Object)
method returns A 32-bit unsigned integer that is equivalent to value, or 0 (zero) if value
is null.
Example
/*from w ww . j a va 2 s. com*/
using System;
public class MainClass{
public static void Main(String[] argv){
System.Console.WriteLine(Convert.ToUInt32((Object)123));
}
}
The code above generates the following result.