C# Convert ToUInt64(Char)
Description
Convert ToUInt64(Char)
converts the value of the specified
Unicode character to the equivalent 64-bit unsigned integer.
Syntax
Convert.ToUInt64(Char)
has the following syntax.
[CLSCompliantAttribute(false)]
public static ulong ToUInt64(
char value
)
Parameters
Convert.ToUInt64(Char)
has the following parameters.
value
- The Unicode character to convert.
Returns
Convert.ToUInt64(Char)
method returns A 64-bit unsigned integer that is equivalent to value.
Example
/*from ww w .j av a 2 s . c o m*/
using System;
public class MainClass{
public static void Main(String[] argv){
Console.WriteLine(Convert.ToUInt64('a'));
}
}
The code above generates the following result.