किसी निर्दिष्ट मान को 64-बिट अहस्ताक्षरित पूर्णांक में बदलने के लिए Convert.ToUInt64() विधि का उपयोग करें।
निम्नलिखित हमारा चार्ट है।
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