08 2012 档案

摘要:public enum color{ red = 0, blue = 1}color c1;转换成字符串:Enum.GetName(typeof(color), c1) 转换成枚举:(color)Enum.Parse(typeof(color), "red", true) private SqlDbType getType(string s) { return (SqlDbType)Enum.Parse(typeof(SqlDbType), s, true); }转帖地址:http://hi.baidu.com/redlineren/item/bada29fa3446f2c 阅读全文
posted @ 2012-08-31 19:29 ManchesterUnited 阅读(284) 评论(0) 推荐(0)
摘要:在Tools->Options->Projects and Solutions->General 下只要把”Track Active Item In Solution Explorer”选上就行。参考:http://blchen.com/highlight-the-current-edited-file-in-vs-solution-explorer/ 阅读全文
posted @ 2012-08-22 16:04 ManchesterUnited 阅读(233) 评论(0) 推荐(0)