To separate (if you know that it is split, you can use string.Split
To get an ASCII representation of "A", for example, use the following code
int asciivalue = (int)'A';
Such a complete example could be
Dictionary<char,int> asciilist = new Dictionary<char,int>(); string s = "AB-1233-444"; string[] splitstrings = s.Split('-'); foreach( char c in splitstrings[0]){ asciilist.Add( c, (int)c ); }
source share