Ascii To Char - CSharp System

CSharp examples for System:Char

Description

Ascii To Char

Demo Code


using System.Web;
using System.Text;
using System.Security.Cryptography;
using System.Linq;
using System.Collections.Generic;
using System;/*from w w  w .  j  a v a  2s.c  o m*/

public class Main{
        public static char AsciiToChar(int a)
        {
            byte[] array = new byte[] { (byte)(a) };
            char[] charArray = Encoding.ASCII.GetChars(array);
            return charArray[0];
        }
}

Related Tutorials