Encoding.BigEndianUnicode
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);
}
}
Related examples in the same category