char a = ‘0‘; int b = (int)a;
就这么简单..
c# 如何得到一个字符的ASCII码
原文:http://www.cnblogs.com/iiwen/p/6522003.html