Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
iAJTin committed Apr 25, 2019
1 parent becd3c2 commit fc0aaef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 16 deletions.
10 changes: 2 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,16 +71,10 @@ Call **DMI.Instance.Structures** for getting all SMBIOS structures availables.
}

string processorFamily = structures.GetProperty<string>(DmiProperty.Processor.Family);
if (processorFamily != null)
{
Console.WriteLine($" Processor Family > {processorFamily}");
}
Console.WriteLine($" Processor Family > {processorFamily}");

string processorManufacturer = structures.GetProperty<string>(DmiProperty.Processor.ProcessorManufacturer);
if (processorManufacturer != null)
{
Console.WriteLine($" Processor Manufacturer > {processorManufacturer}");
}
Console.WriteLine($" Processor Manufacturer > {processorManufacturer}");

4. Gets a property in **multiple** elements directly.

Expand Down
10 changes: 2 additions & 8 deletions src/test/iSMBIOS.ConsoleApp/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -118,16 +118,10 @@ static void Main(string[] args)
}

string processorFamily = structures.GetProperty<string>(DmiProperty.Processor.Family);
if (processorFamily != null)
{
Console.WriteLine($" Processor Family > {processorFamily}");
}
Console.WriteLine($" Processor Family > {processorFamily}");

string processorManufacturer = structures.GetProperty<string>(DmiProperty.Processor.ProcessorManufacturer);
if (processorManufacturer != null)
{
Console.WriteLine($" Processor Manufacturer > {processorManufacturer}");
}
Console.WriteLine($" Processor Manufacturer > {processorManufacturer}");

Console.WriteLine();
Console.WriteLine(@" ——————————————————————————————————————————————————————————————");
Expand Down

0 comments on commit fc0aaef

Please sign in to comment.