C# Convert ToInt64(Int64)
Description
Convert ToInt64(Int64)
returns the specified 64-bit
signed integer; no actual conversion is performed.
Syntax
Convert.ToInt64(Int64)
has the following syntax.
public static long ToInt64(
long value
)
Parameters
Convert.ToInt64(Int64)
has the following parameters.
value
- A 64-bit signed integer.
Returns
Convert.ToInt64(Int64)
method returns value is returned unchanged.
Example
//from w ww .ja v a 2 s . c o m
using System;
public class MainClass{
public static void Main(String[] argv){
System.Console.WriteLine(Convert.ToInt64((Int64)123));
}
}
The code above generates the following result.