This repository was archived by the owner on Dec 24, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
src/ServiceStack.Text/Common Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -34,15 +34,15 @@ private static ParseStringDelegate GetParseFn()
34
34
if ( typeof ( T ) == typeof ( bool ) )
35
35
return value => value . Length == 1 ? value == "1" : bool . Parse ( value ) ;
36
36
if ( typeof ( T ) == typeof ( byte ) )
37
- return value => byte . Parse ( value ) ;
37
+ return value => byte . Parse ( value , CultureInfo . InvariantCulture ) ;
38
38
if ( typeof ( T ) == typeof ( sbyte ) )
39
- return value => sbyte . Parse ( value ) ;
39
+ return value => sbyte . Parse ( value , CultureInfo . InvariantCulture ) ;
40
40
if ( typeof ( T ) == typeof ( short ) )
41
- return value => short . Parse ( value ) ;
41
+ return value => short . Parse ( value , CultureInfo . InvariantCulture ) ;
42
42
if ( typeof ( T ) == typeof ( int ) )
43
- return value => int . Parse ( value ) ;
43
+ return value => int . Parse ( value , CultureInfo . InvariantCulture ) ;
44
44
if ( typeof ( T ) == typeof ( long ) )
45
- return value => long . Parse ( value ) ;
45
+ return value => long . Parse ( value , CultureInfo . InvariantCulture ) ;
46
46
if ( typeof ( T ) == typeof ( float ) )
47
47
return value => float . Parse ( value , CultureInfo . InvariantCulture ) ;
48
48
if ( typeof ( T ) == typeof ( double ) )
You can’t perform that action at this time.
0 commit comments