@@ -45,15 +45,15 @@ private static ParseStringDelegate GetParseFn()
45
45
case TypeCode . Int16 :
46
46
return value => short . Parse ( value , CultureInfo . InvariantCulture ) ;
47
47
case TypeCode . UInt16 :
48
- return value => ushort . Parse ( value ) ;
48
+ return value => ushort . Parse ( value , CultureInfo . InvariantCulture ) ;
49
49
case TypeCode . Int32 :
50
50
return value => int . Parse ( value , CultureInfo . InvariantCulture ) ;
51
51
case TypeCode . UInt32 :
52
- return value => uint . Parse ( value ) ;
52
+ return value => uint . Parse ( value , CultureInfo . InvariantCulture ) ;
53
53
case TypeCode . Int64 :
54
54
return value => long . Parse ( value , CultureInfo . InvariantCulture ) ;
55
55
case TypeCode . UInt64 :
56
- return value => ulong . Parse ( value ) ;
56
+ return value => ulong . Parse ( value , CultureInfo . InvariantCulture ) ;
57
57
case TypeCode . Single :
58
58
return value => float . Parse ( value , CultureInfo . InvariantCulture ) ;
59
59
case TypeCode . Double :
@@ -86,21 +86,21 @@ private static ParseStringDelegate GetParseFn()
86
86
case TypeCode . Boolean :
87
87
return value => string . IsNullOrEmpty ( value ) ? ( bool ? ) null : value . Length == 1 ? value == "1" : bool . Parse ( value ) ;
88
88
case TypeCode . Byte :
89
- return value => string . IsNullOrEmpty ( value ) ? ( byte ? ) null : byte . Parse ( value ) ;
89
+ return value => string . IsNullOrEmpty ( value ) ? ( byte ? ) null : byte . Parse ( value , CultureInfo . InvariantCulture ) ;
90
90
case TypeCode . SByte :
91
- return value => string . IsNullOrEmpty ( value ) ? ( sbyte ? ) null : sbyte . Parse ( value ) ;
91
+ return value => string . IsNullOrEmpty ( value ) ? ( sbyte ? ) null : sbyte . Parse ( value , CultureInfo . InvariantCulture ) ;
92
92
case TypeCode . Int16 :
93
- return value => string . IsNullOrEmpty ( value ) ? ( short ? ) null : short . Parse ( value ) ;
93
+ return value => string . IsNullOrEmpty ( value ) ? ( short ? ) null : short . Parse ( value , CultureInfo . InvariantCulture ) ;
94
94
case TypeCode . UInt16 :
95
- return value => string . IsNullOrEmpty ( value ) ? ( ushort ? ) null : ushort . Parse ( value ) ;
95
+ return value => string . IsNullOrEmpty ( value ) ? ( ushort ? ) null : ushort . Parse ( value , CultureInfo . InvariantCulture ) ;
96
96
case TypeCode . Int32 :
97
- return value => string . IsNullOrEmpty ( value ) ? ( int ? ) null : int . Parse ( value ) ;
97
+ return value => string . IsNullOrEmpty ( value ) ? ( int ? ) null : int . Parse ( value , CultureInfo . InvariantCulture ) ;
98
98
case TypeCode . UInt32 :
99
- return value => string . IsNullOrEmpty ( value ) ? ( uint ? ) null : uint . Parse ( value ) ;
99
+ return value => string . IsNullOrEmpty ( value ) ? ( uint ? ) null : uint . Parse ( value , CultureInfo . InvariantCulture ) ;
100
100
case TypeCode . Int64 :
101
- return value => string . IsNullOrEmpty ( value ) ? ( long ? ) null : long . Parse ( value ) ;
101
+ return value => string . IsNullOrEmpty ( value ) ? ( long ? ) null : long . Parse ( value , CultureInfo . InvariantCulture ) ;
102
102
case TypeCode . UInt64 :
103
- return value => string . IsNullOrEmpty ( value ) ? ( ulong ? ) null : ulong . Parse ( value ) ;
103
+ return value => string . IsNullOrEmpty ( value ) ? ( ulong ? ) null : ulong . Parse ( value , CultureInfo . InvariantCulture ) ;
104
104
case TypeCode . Single :
105
105
return value => string . IsNullOrEmpty ( value ) ? ( float ? ) null : float . Parse ( value , CultureInfo . InvariantCulture ) ;
106
106
case TypeCode . Double :
0 commit comments