/// <summary> /// 转换数字 /// </summary> protected static int CharToNumber(string c) { switch (c) { case "一": return 1; case "二": return 2; case "三": return 3; case "四": return 4; case "五": return 5; case "六": return 6; case "七": return 7; case "八": return 8; case "九": return 9; case "零": return 0; default: return int.Parse(c); } }