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