CSharp examples for System:Char
Char To Int
using System.Xml.Serialization; using System.Xml; using System.Web; using System.Text; using System.Runtime.Serialization.Formatters.Binary; using System.Runtime.InteropServices; using System.Linq; using System.IO;//from ww w . j av a 2 s . c o m using System.Collections.Generic; using System; public class Main{ internal static int CharToInt(char[] length) { return int.Parse(new string(length)); } internal static int CharToInt(byte[] length, int start, int size) { return int.Parse(Encoding.Default.GetString(length, start, size)); } }