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