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