C#中的Convert.ToUInt64方法
使用Convert.ToUInt64()方法将指定的值转换为64位无符号整数。
以下是我们的字符。
char ch = 'a';
现在,让我们将其转换为64位无符号整数。
ulong res; res = Convert.ToUInt64(ch);
这是完整的示例。
示例
using System;
public class Demo {
public static void Main() {
char ch = 'a';
ulong res;
res = Convert.ToUInt64(ch);
Console.WriteLine("Converted char value '{0}' to {1}", ch, res);
}
}输出结果
Converted char value 'a' to 97
热门推荐
10 生日祝福语朋友简短的话
11 宝贝的人生祝福语简短
12 新年有哪些祝福语简短
13 简短又洋气祝福语大全
14 简短祝福语除夕快乐英文
15 生日贺卡祝福语毕业简短
16 战友聚会祝福语幽默简短
17 最新中秋祝福语简短英语
18 夏日升学宴祝福语简短