Skip to content

Commit 89192da

Browse files
committed
Fix compile errors
1 parent 88eb0be commit 89192da

File tree

3 files changed

+3
-25
lines changed

3 files changed

+3
-25
lines changed

Samples/ConsoleApp-NetCore/Program.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Threading.Tasks;
52
using UnitsNet;
63

74
namespace ConsoleApp1

Samples/ConsoleApp-NetCore/Properties/AssemblyInfo.cs

Lines changed: 0 additions & 19 deletions
This file was deleted.

Samples/UnitConverter.Wpf/UnitConverter.Wpf/UnitListItem.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22

33
namespace UnitsNet.Samples.UnitConverter.Wpf
44
{
@@ -14,7 +14,7 @@ public UnitListItem(object val)
1414
UnitEnumValue = val;
1515
UnitEnumValueInt = (int) val;
1616
UnitEnumType = val.GetType();
17-
Abbreviation = UnitSystem.Default.GetDefaultAbbreviation(UnitEnumType, UnitEnumValueInt);
17+
Abbreviation = UnitAbbreviationsCache.Default.GetDefaultAbbreviation(UnitEnumType, UnitEnumValueInt);
1818

1919
Text = $"{val} [{Abbreviation}]";
2020
}
@@ -25,4 +25,4 @@ public UnitListItem(object val)
2525
public Type UnitEnumType { get; }
2626
public string Abbreviation { get; }
2727
}
28-
}
28+
}

0 commit comments

Comments
 (0)