Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Convert string to unicode representation
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Text; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace SampleTest { public static class Extension { public static string ToUnicodeString(this string str) { StringBuilder sb = new StringBuilder(); foreach(var c in str) { sb.Append("\\u" + ((int) c).ToString("X4")); } return sb.ToString(); } } public class Program { public static void Main(string[] args) { //Your code goes here Console.WriteLine("Hello, world!".ToUnicodeString()); } } }
run
|
edit
|
history
|
help
0
UFC 271 LIVE STREAM FREE REDDIT
Jump Search
Intuit // C# // Lecture_4 // Laba_#2
k
DAY !
Program A
hello,world
newstring vs regex
quick sort
timer