I'm trying to create a string with emoji "" starting from this string "D83DDC71". For doing that I'm trying to convert the string above in this string "\uD83D\uDC71".
If i use this code it work (textbox shows as expected):
textbox.Text += "\uD83D\uDC71";
but if i use this it doesn't work (textbox shows exact text "\uD83D\uDC71" instead of single character):
textbox.Text += sender.Code.ToString("X").insert(4, @"\u").insert(0, @"\u");
What is the right way to convert hex representation of an emoji to a corresponding C# string (UTF-16)?