@@ -1130,7 +1130,7 @@ public static bool ParseChar( string input, out object output )
1130
1130
public static bool ParseFloat ( string input , out object output )
1131
1131
{
1132
1132
float value ;
1133
- bool result = float . TryParse ( ! input . EndsWith ( "f" , StringComparison . OrdinalIgnoreCase ) ? input : input . Substring ( 0 , input . Length - 1 ) , out value ) ;
1133
+ bool result = float . TryParse ( ! input . EndsWith ( "f" , StringComparison . OrdinalIgnoreCase ) ? input : input . Substring ( 0 , input . Length - 1 ) , NumberStyles . Float , CultureInfo . InvariantCulture , out value ) ;
1134
1134
1135
1135
output = value ;
1136
1136
return result ;
@@ -1139,7 +1139,7 @@ public static bool ParseFloat( string input, out object output )
1139
1139
public static bool ParseDouble ( string input , out object output )
1140
1140
{
1141
1141
double value ;
1142
- bool result = double . TryParse ( ! input . EndsWith ( "f" , StringComparison . OrdinalIgnoreCase ) ? input : input . Substring ( 0 , input . Length - 1 ) , out value ) ;
1142
+ bool result = double . TryParse ( ! input . EndsWith ( "f" , StringComparison . OrdinalIgnoreCase ) ? input : input . Substring ( 0 , input . Length - 1 ) , NumberStyles . Float , CultureInfo . InvariantCulture , out value ) ;
1143
1143
1144
1144
output = value ;
1145
1145
return result ;
@@ -1148,7 +1148,7 @@ public static bool ParseDouble( string input, out object output )
1148
1148
public static bool ParseDecimal ( string input , out object output )
1149
1149
{
1150
1150
decimal value ;
1151
- bool result = decimal . TryParse ( ! input . EndsWith ( "f" , StringComparison . OrdinalIgnoreCase ) ? input : input . Substring ( 0 , input . Length - 1 ) , out value ) ;
1151
+ bool result = decimal . TryParse ( ! input . EndsWith ( "f" , StringComparison . OrdinalIgnoreCase ) ? input : input . Substring ( 0 , input . Length - 1 ) , NumberStyles . Float , CultureInfo . InvariantCulture , out value ) ;
1152
1152
1153
1153
output = value ;
1154
1154
return result ;
0 commit comments