From Ascii Byte Array to String - CSharp System

CSharp examples for System:Byte

Description

From Ascii Byte Array to String

Demo Code


using System.Text;
using System;//from w  ww  .  ja v  a  2  s. co  m

public class Main{
        public static string FromAsciiByteArray(
            byte[] bytes)
        {
            return Encoding.ASCII.GetString(bytes, 0, bytes.Length);
        }
}

Related Tutorials