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