string 转Type
摘要:#region string 转Type /// <summary> /// string 转Type /// </summary> /// <param name="typeName"></param> /// <returns></returns> public Type GetEnumType
阅读全文
posted @
2021-11-26 09:54
冰魂雪魄
阅读(436)
推荐(0) 编辑
C#获取枚举的描述
摘要:方法一: public static Dictionary<string, string> GetEnumDescription<T>() { Dictionary<string, string> dic = new Dictionary<string, string>(); FieldInfo[]
阅读全文
posted @
2021-11-24 17:29
冰魂雪魄
阅读(404)
推荐(0) 编辑
C# XML 写入
摘要:写入内容为如图 写入xml文件方法 public void CreatXmlTree(string xmlPath) { XElement xElement = new XElement( new XElement("BookStore", new XElement("Book", new XEle
阅读全文
posted @
2021-11-15 10:08
冰魂雪魄
阅读(468)
推荐(0) 编辑