摘要: 本文将对微软.Net开发中的多线程编程进行一个简单的总结,相信对大家会有所帮助的。下面就具体来看看:   不需要传递参数,也不需要返回参数  我们知道启动一个线程最直观的办法是使用Thread类,具体步骤如下:ThreadStart threadStart=new ThreadStart(Calculate);Thread thread=new Thread(threadStart);   thr... 阅读全文
posted @ 2010-10-13 17:42 我的食草堂 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 首先要下载System.Management.dll文件,然后在项目中添加相应的类和方法,参考方法如下: using System.Management; class Computer { public string CpuID; public string MacAddress; public string DiskID; public string IpAddress; public stri... 阅读全文
posted @ 2010-10-13 17:31 我的食草堂 阅读(798) 评论(0) 推荐(0) 编辑