using System; using System.Text; class StringEncodingApp { static void Main(string[] args) { byte[] bb = new byte[] { 0, 72, 0, 101, 0, 108, 0, 108, 0, 111 }; string t = Encoding.BigEndianUnicode.GetString(bb); Console.WriteLine(t); } }
Copyright � 2010 Dotfluent Network. Use of this web site constitutes acceptance of the w3mentor Terms of Use and Privacy Policy.