private static void ReadProcessorInformation() { ManagementClass mc = new ManagementClass("win32_processor"); ManagementObjectCollection moc = mc.GetInstances(); foreach (ManagementObject mo in moc) { Nolte.Hardware.Helper.ProcessorInformation pi = new Nolte.Hardware.Helper.ProcessorInformation(mo.Properties["processorID"].Value.ToString(), mo.Properties["MaxClockSpeed"].Value.ToString(), mo.Properties["Name"].Value.ToString()); Nolte.Hardware.processorInformationIndexer.Add(pi); } }
internal void Add(Nolte.Hardware.Helper.ProcessorInformation Info) { this.processorInfo.Add(Info); }