摘要:
http://wenwen.soso.com/z/q329530246.htm?ch=wtk.titleforeach(KeyValuePair<string,Class1> item in c1){ c2.Add(item.Key,item.Value);} 阅读全文
posted @ 2012-05-14 19:09
Billy.rao
阅读(441)
评论(0)
推荐(0)
摘要:
http://zhidao.baidu.com/question/154145824.html//一个enum的例子enum Colors { Red = 1, Green = 2, Blue = 4, Yellow = 8 };//转换的例子Colors myColor = (Colors)Enum.Parse(typeof(Colors), "Yellow"); 阅读全文
posted @ 2012-05-14 15:31
Billy.rao
阅读(396)
评论(0)
推荐(0)
摘要:
http://zhidao.baidu.com/question/91664114.htmlclass GetEnumValues { public static void Main() { Type Sexs = typeof(SexKind); Console.WriteLine("The kinds of the Sex:"); foreach (string s in Enum.GetNames(Sexs)) { Console.WriteLine(s); } } } enum SexKind { Male, Female } 阅读全文
posted @ 2012-05-14 15:11
Billy.rao
阅读(198)
评论(0)
推荐(0)
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2012-05-14 10:40
Billy.rao
阅读(9)
评论(0)
推荐(0)

浙公网安备 33010602011771号