Encoding.ASCII.GetString
using System;
using System.Text;
class StringEncodingApp {
static void Main(string[] args) {
byte[] ba = new byte[] { 72, 101, 108, 108, 111 };
string s = Encoding.ASCII.GetString(ba);
Console.WriteLine(s);
}
}
Related examples in the same category