archangelmihail

DeclareCharUnicode72

Nov 17th, 2013
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. using System;
  2.  
  3. class DeclareCharUnicode72
  4. {
  5. static void Main()
  6. {
  7. int number = 72;
  8. string hexOutput = String.Format("{0:X}", number);
  9. Console.WriteLine("Hexadecimal value of {0} is {1}", number, hexOutput);
  10. char ch = '\u0048'; //aslo possible char ch = (char)0x48;
  11.  
  12. Console.WriteLine("The character with Unicode {0} is {1}!", hexOutput, ch);
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment