C# – Convert Int to Char

c++casting

What is the best way to convert an Int value to the corresponding Char in Utf16, given that the Int is in the range of valid values?

Best Answer

(char)myint;

for example:

Console.WriteLine("(char)122 is {0}", (char)122);

yields:

(char)122 is z

Related Question