23
23
using System . Collections . Generic ;
24
24
using System . Globalization ;
25
25
using System . Linq ;
26
- using System . Reflection ;
27
26
using JetBrains . Annotations ;
28
27
using UnitsNet . I18n ;
29
28
@@ -37,11 +36,6 @@ public partial class UnitSystem
37
36
private static readonly Dictionary < IFormatProvider , UnitSystem > CultureToInstance ;
38
37
private static readonly CultureInfo DefaultCulture = new CultureInfo ( "en-US" ) ;
39
38
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
-
45
39
/// <summary>
46
40
/// Per-unit-type dictionary of enum values by abbreviation. This is the inverse of
47
41
/// <see cref="_unitTypeToUnitValueToAbbrevs" />.
@@ -54,6 +48,10 @@ public partial class UnitSystem
54
48
/// </summary>
55
49
private readonly Dictionary < Type , Dictionary < int , List < string > > > _unitTypeToUnitValueToAbbrevs ;
56
50
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 ;
57
55
58
56
static UnitSystem ( )
59
57
{
@@ -146,7 +144,6 @@ public string GetDefaultAbbreviation<TUnit>(TUnit unit)
146
144
return GetAllAbbreviations ( unit ) . First ( ) ;
147
145
}
148
146
149
-
150
147
[ PublicAPI ]
151
148
public void MapUnitToAbbreviation < TUnit > ( TUnit unit , params string [ ] abbreviations )
152
149
where TUnit : /*Enum constraint hack*/ struct , IComparable , IFormattable
0 commit comments