本文实例讲述了C#获取CPU编号的方法。分享给大家供大家参考。具体如下: /// /// Gets the cpu 编号. ///需引用 using System.Management; /// /// public string GetCpuId() { string cpuInfo = ; ManagementClass cimobject = new ManagementClass(Win32_Processor); ManagementObjectCollection moc