悟生慧

 

2013年8月15日

C#去掉list集合中的重复数据

摘要: List conList= new List(); List listII = new List(); int m = 0; for (int i = 0; i < conList.Count; i++) { string i_value = (string)conList[i]; for (int j = 0; j < conList.Count; j++) { ... 阅读全文

posted @ 2013-08-15 16:34 悟生慧 阅读(17522) 评论(1) 推荐(0) 编辑

C#获取操作系统是32位或64位的代码

摘要: 注意需添加引用System.Management)public static string Distinguish64or32System(){try{string addressWidth = String.Empty;ConnectionOptions mConnOption = new ConnectionOptions();ManagementScope mMs = new ManagementScope("\\\\localhost", mConnOption);ObjectQuery mQuery = new ObjectQuery("select A 阅读全文

posted @ 2013-08-15 16:30 悟生慧 阅读(1007) 评论(0) 推荐(0) 编辑

导航