Skip to content

Commit d05cf96

Browse files
committed
UnitSystem: R# cleanup
1 parent c174503 commit d05cf96

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

UnitsNet/CustomCode/UnitSystem.cs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
using System.Collections.Generic;
2424
using System.Globalization;
2525
using System.Linq;
26-
using System.Reflection;
2726
using JetBrains.Annotations;
2827
using UnitsNet.I18n;
2928

@@ -37,11 +36,6 @@ public partial class UnitSystem
3736
private static readonly Dictionary<IFormatProvider, UnitSystem> CultureToInstance;
3837
private static readonly CultureInfo DefaultCulture = new CultureInfo("en-US");
3938

40-
/// <summary>
41-
/// The culture of which this unit system is based on. Either passed in to constructor or the default culture.
42-
/// </summary>
43-
[NotNull] [PublicAPI] public readonly IFormatProvider Culture;
44-
4539
/// <summary>
4640
/// Per-unit-type dictionary of enum values by abbreviation. This is the inverse of
4741
/// <see cref="_unitTypeToUnitValueToAbbrevs" />.
@@ -54,6 +48,10 @@ public partial class UnitSystem
5448
/// </summary>
5549
private readonly Dictionary<Type, Dictionary<int, List<string>>> _unitTypeToUnitValueToAbbrevs;
5650

51+
/// <summary>
52+
/// The culture of which this unit system is based on. Either passed in to constructor or the default culture.
53+
/// </summary>
54+
[NotNull] [PublicAPI] public readonly IFormatProvider Culture;
5755

5856
static UnitSystem()
5957
{
@@ -146,7 +144,6 @@ public string GetDefaultAbbreviation<TUnit>(TUnit unit)
146144
return GetAllAbbreviations(unit).First();
147145
}
148146

149-
150147
[PublicAPI]
151148
public void MapUnitToAbbreviation<TUnit>(TUnit unit, params string[] abbreviations)
152149
where TUnit : /*Enum constraint hack*/ struct, IComparable, IFormattable

0 commit comments

Comments
 (0)