C# में Char.ConvertFromUtf32(Int32) विधि का उपयोग निर्दिष्ट यूनिकोड कोड पॉइंट को UTF-16 एन्कोडेड स्ट्रिंग में बदलने के लिए किया जाता है।
सिंटैक्स
public static string ConvertFromUtf32 (int utf32);
यहां, पैरामीटर utf32 एक 21-बिट यूनिकोड कोड पॉइंट है।
उदाहरण
आइए Char.ConvertFromUtf32(Int32) विधि को लागू करने का एक उदाहरण देखें:
using System;
public class Demo {
public static void Main(){
int utf = 0x0051;
string str = Char.ConvertFromUtf32(utf);
Console.WriteLine("मान = " + str);
}
}
आउटपुट
मान = Q
उदाहरण
using System;
public class Demo {
public static void Main(){
int utf = 0x0046;
string str = Char.ConvertFromUtf32(utf);
Console.WriteLine("मान = " + str);
}
}
आउटपुट
मान = F