摘要:
扩展方法C# code///<summary>/// 根据字符串返回对应枚举类型 ///</summary>///<typeparam name="T">对应枚举类型</typeparam>///<param name="source">字符串</param>///<returns></returns>publicstatic T GetEnumByValue<T>(thisstring source) { if (typeof(T).BaseTy 阅读全文
posted @ 2012-08-20 10:45
Danny Chen
阅读(215)
评论(0)
推荐(0)

浙公网安备 33010602011771号