Skip to content

Class CSharpLib.Computer.HardwareInfo

Samuel edited this page May 16, 2021 · 1 revision

Class HardwareInfo gets computer hardware information. Usage is easy; first create an instance:

using CSharpLib.Computer;

HardwareInfo info = new HardwareInfo();

Then, simply get one of the available properties from the instance. For example, if you want to get the clock speed of the processor, do it like this:

string clockSpeed = info.ProcessorClockSpeed;

That's it! If you want a different property or want to see the list of properties, use Visual Studio autofill to see the properties.