C# Convert ToUInt32(String)
Description
Convert ToUInt32(String)
converts the specified string
representation of a number to an equivalent 32-bit unsigned integer.
Syntax
Convert.ToUInt32(String)
has the following syntax.
[CLSCompliantAttribute(false)]
public static uint ToUInt32(
string value
)
Parameters
Convert.ToUInt32(String)
has the following parameters.
value
- A string that contains the number to convert.
Returns
Convert.ToUInt32(String)
method returns A 32-bit unsigned integer that is equivalent to the number in value, or 0 (zero)
if value is null.
Example
// w w w. j a v a2s .c om
using System;
public class MainClass{
public static void Main(String[] argv){
Console.WriteLine(Convert.ToUInt32("123"));
}
}
The code above generates the following result.