File tree Expand file tree Collapse file tree 2 files changed +14
-12
lines changed
UnitsNet/CustomCode/UnitClasses Expand file tree Collapse file tree 2 files changed +14
-12
lines changed Original file line number Diff line number Diff line change 23
23
using JetBrains . Annotations ;
24
24
using UnitsNet . Units ;
25
25
26
+ #if WINDOWS_UWP
27
+ using Culture = System . String ;
28
+ #else
29
+ using Culture = System . IFormatProvider ;
30
+ #endif
31
+
26
32
namespace UnitsNet
27
33
{
28
34
/// <summary>
@@ -126,12 +132,7 @@ public override string ToString()
126
132
return ToString ( null ) ;
127
133
}
128
134
129
- #if WINDOWS_UWP
130
- internal
131
- #else
132
- public
133
- #endif
134
- string ToString ( [ CanBeNull ] IFormatProvider cultureInfo )
135
+ public string ToString ( [ CanBeNull ] Culture cultureInfo )
135
136
{
136
137
// Note that it isn't customary to use fractions - one wouldn't say "I am 5 feet and 4.5 inches".
137
138
// So inches are rounded when converting from base units to feet/inches.
Original file line number Diff line number Diff line change 23
23
using JetBrains . Annotations ;
24
24
using UnitsNet . Units ;
25
25
26
+ #if WINDOWS_UWP
27
+ using Culture = System . String ;
28
+ #else
29
+ using Culture = System . IFormatProvider ;
30
+ #endif
31
+
26
32
namespace UnitsNet
27
33
{
28
34
#if WINDOWS_UWP
@@ -110,12 +116,7 @@ public override string ToString()
110
116
return ToString ( null ) ;
111
117
}
112
118
113
- #if WINDOWS_UWP
114
- internal
115
- #else
116
- public
117
- #endif
118
- string ToString ( [ CanBeNull ] IFormatProvider cultureInfo )
119
+ public string ToString ( [ CanBeNull ] Culture cultureInfo )
119
120
{
120
121
// Note that it isn't customary to use fractions - one wouldn't say "I am 11 stone and 4.5 pounds".
121
122
// So pounds are rounded here.
You can’t perform that action at this time.
0 commit comments