File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -137,8 +137,15 @@ public UnitSystem() : this(DefaultCulture)
137
137
138
138
/// <summary>
139
139
/// Defaults to <see cref="CultureInfo.CurrentUICulture" /> when creating an instance with no culture provided.
140
+ /// Can be overridden, but note that this is static and will affect all subsequent usages.
140
141
/// </summary>
141
- private static IFormatProvider DefaultCulture => CultureInfo . CurrentUICulture ;
142
+ #if WINDOWS_UWP
143
+ // Windows Runtime Component does not support exposing the IFormatProvider type in public API
144
+ internal
145
+ #else
146
+ public
147
+ #endif
148
+ static IFormatProvider DefaultCulture { get ; set ; } = CultureInfo . CurrentUICulture ;
142
149
143
150
public bool IsFallbackCulture => Culture . Equals ( FallbackCulture ) ;
144
151
You can’t perform that action at this time.
0 commit comments