[Bugfix] Allow GET access to Computer SMBios table (#579)

* Allow GET access to Computer SMBios table

* Update Computer.cs

Co-authored-by: PhyxionNL <7643972+PhyxionNL@users.noreply.github.com>
This commit is contained in:
Pomian
2021-10-17 11:14:07 +02:00
committed by GitHub
co-authored by PhyxionNL
parent 9bf2447ab9
commit 2d12fc2ece
@@ -76,6 +76,20 @@ namespace LibreHardwareMonitor.Hardware
}
}
/// <summary>
/// Contains computer information table read in accordance with <see href="https://www.dmtf.org/standards/smbios">System Management BIOS (SMBIOS) Reference Specification</see>.
/// </summary>
public SMBios SMBios
{
get
{
if (!_open)
throw new InvalidOperationException("SMBIOS cannot be accessed before opening.");
return _smbios;
}
}
/// <summary>
/// Gets or sets a value indicating whether collecting information about <see cref="HardwareType.Cpu"/> devices should be enabled and updated.
/// </summary>