分类:攻城湿

42 篇文章

EnumParser实现

先看例子: public enum Color { Red, Blue, Gray, } Color redColorEnum = EnumParser.Parse<Color>("Red"); 以下是实现代码: /// <summary> /// Methods to parse ...

C#转换人民币大小金额

/// <summary> /// 转换人民币大小金额 /// </summary> public static string GetChineseMoney(decimal num) { string str1 = "零壹贰叁肆伍陆柒捌玖"; //0-9所对应的汉字 ...