iSMBIOS 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package iSMBIOS --version 1.0.0
NuGet\Install-Package iSMBIOS -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="iSMBIOS" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add iSMBIOS --version 1.0.0
#r "nuget: iSMBIOS, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install iSMBIOS as a Cake Addin
#addin nuget:?package=iSMBIOS&version=1.0.0

// Install iSMBIOS as a Cake Tool
#tool nuget:?package=iSMBIOS&version=1.0.0

What is iSMBIOS?

iSMBIOS is a lightweight implementation that allows us to obtain the SMBIOS information

This library fully implements DMTF Specification 3.2.0 and olders versions

For more information, please see https://www.dmtf.org/standards/smbios

Usage

Call DMI.Instance.Structures for gets all SMBIOS structures availables.

Examples

  1. Gets and print all SMBIOS availables structures.

         DmiStructureCollection structures = DMI.Instance.Structures;
         foreach (DmiStructure structure in structures)
         {
             Console.WriteLine($"{(int) structure.Class:D3}-{structure.Class}");
         }
    
  2. Gets a specific SMBIOS structure.

         DmiStructureCollection structures = DMI.Instance.Structures;
         DmiStructure bios = structures[SmbiosStructure.Bios];
         if (bios != null)
         {
             /// structure exist!!!
         }
    
  3. Print all SMBIOS structures properties

         DmiStructureCollection structures = DMI.Instance.Structures;
         foreach (DmiStructure structure in structures)
         {
             Console.WriteLine($"{(int)structure.Class:D3}-{structure.Class} structure detail:");
             Console.WriteLine("——————————————————————————————————————————————");
             DmiClassCollection elements = structure.Elements;
             foreach (DmiClass element in elements)
             {
                 var elementProperties = element.Properties;
                 foreach (DictionaryEntry property in elementProperties)
                 {
                     var value = property.Value;
                     if (value == null)
                     {
                         Console.WriteLine($"{((PropertyKey)property.Key).PropertyId} -> NULL");
                         continue;
                     }
    
                     if (value is string)
                     {
                         Console.WriteLine($"{((PropertyKey)property.Key).PropertyId} -> {property.Value}");
                     }
                     else if (value is byte)
                     {
                         Console.WriteLine($"{((PropertyKey)property.Key).PropertyId} -> {property.Value} [{property.Value:X2}h]");
                     }
                     else if (value is short)
                     {
                         Console.WriteLine($"{((PropertyKey)property.Key).PropertyId} -> {property.Value} [{property.Value:X4}h]");
                     }
                     else if (value is ushort)
                     {
                         Console.WriteLine($"{((PropertyKey)property.Key).PropertyId} -> {property.Value} [{property.Value:X4}h]");
                     }
                     else if (value is int)
                     {
                         Console.WriteLine($"{((PropertyKey)property.Key).PropertyId} -> {property.Value} [{property.Value:X4}h]");
                     }
                     else if (value is uint)
                     {
                         Console.WriteLine($"{((PropertyKey)property.Key).PropertyId} -> {property.Value} [{property.Value:X4}h]");
                     }
                     else if (value is long)
                     {
                         Console.WriteLine($"{((PropertyKey)property.Key).PropertyId} -> {property.Value} [{property.Value:X8}h]");
                     }
                     else if (value is ulong)
                     {
                         Console.WriteLine($"{((PropertyKey)property.Key).PropertyId} -> {property.Value} [{property.Value:X8}h]");
                     }
                     else if (value.GetType() == typeof(ReadOnlyCollection<string>))
                     {
                         Console.WriteLine($"{((PropertyKey)property.Key).PropertyId}");
                         ReadOnlyCollection<string> collection = (ReadOnlyCollection<string>)value;
                         foreach (string entry in collection)
                         {
                             Console.WriteLine(string.Format(CultureInfo.InvariantCulture, "\t-> {0}", entry));
                         }
                     }
                     else
                     {
                         Console.WriteLine($"{((PropertyKey)property.Key).PropertyId} -> {property.Value}");
                     }
                 }
             }
         }
    
Product Compatible and additional computed target framework versions.
.NET Framework net40 is compatible.  net403 was computed.  net45 was computed.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.1.8 2,145 8/17/2023
1.1.7 3,292 9/29/2022
1.1.6 3,301 12/9/2021
1.1.5 4,537 10/12/2020
1.1.4 1,253 8/25/2020
1.1.3 2,624 3/6/2020
1.1.2 533 2/15/2020
1.1.1 3,273 10/20/2019
1.1.0 558 9/2/2019
1.0.9 513 8/28/2019
1.0.8 539 8/23/2019
1.0.7 537 8/13/2019
1.0.6 597 5/29/2019
1.0.5 609 4/25/2019
1.0.3 554 4/12/2019
1.0.2 541 4/2/2019
1.0.1 609 3/22/2019
1.0.0 1,283 12/29/2018