public void Close() { if (lmSensors != null) { lmSensors.Close(); } }
public void Close() { if (lmSensors != null) { lmSensors.Close(); } foreach (Hardware hardware in superIOHardware) { hardware.Close(); } }
public void Close() { _lmSensors?.Close(); foreach (IHardware iHardware in SubHardware) { if (iHardware is Hardware hardware) { hardware.Close(); } } }