Get Key Value Pair from Enum
摘要:
public static List<KeyValuePair<string, int>> GetKeyValuePairFromEnum<T>() where T : struct, IConvertible { List<KeyValuePair<string, int>> result = new List<KeyValuePair<string, int>>(); IEnumerable<T> array = Enum.GetValues(typeof(T)).Cast<T>() 阅读全文
posted @ 2011-09-22 08:24 Cooldash 阅读(330) 评论(0) 推荐(0)
浙公网安备 33010602011771号