@@ -151,15 +151,11 @@ public virtual string Value
151151 {
152152 // check to see if any of the following characters exist: "." or "+/-"
153153 // this will help us determine the acceptable lengths
154- var d = value . IndexOf ( "." ) ;
155- var sp = value . IndexOf ( "+" ) ;
156- var sm = value . IndexOf ( "-" ) ;
154+ var d = value . IndexOf ( "." , StringComparison . Ordinal ) ;
155+ var sp = value . IndexOf ( "+" , StringComparison . Ordinal ) ;
156+ var sm = value . IndexOf ( "-" , StringComparison . Ordinal ) ;
157157 var indexOfSign = - 1 ;
158- var offsetExists = false ;
159- if ( ( sp != - 1 ) || ( sm != - 1 ) )
160- {
161- offsetExists = true ;
162- }
158+ var offsetExists = ( sp != - 1 ) || ( sm != - 1 ) ;
163159
164160 if ( sp != - 1 )
165161 {
@@ -189,7 +185,7 @@ public virtual string Value
189185 {
190186 // The length of the GMT offset must be 5 characters (including the sign)
191187 var msg = "The length of the TM datatype value does not conform to an allowable" +
192- " format. Format should conform to HH[MM[SS[.S[S[S[S]]]]]][+/-ZZZZ]" ;
188+ " format. Format should conform to HH[MM[SS[.S[S[S[S]]]]]][+/-ZZZZ]" ;
193189 var e = new DataTypeException ( msg ) ;
194190 throw e ;
195191 }
@@ -201,7 +197,7 @@ public virtual string Value
201197 if ( ( timeVal . Length < 8 ) || ( timeVal . Length > 11 ) )
202198 {
203199 var msg = "The length of the TM datatype value does not conform to an allowable" +
204- " format. Format should conform to HH[MM[SS[.S[S[S[S]]]]]][+/-ZZZZ]" ;
200+ " format. Format should conform to HH[MM[SS[.S[S[S[S]]]]]][+/-ZZZZ]" ;
205201 var e = new DataTypeException ( msg ) ;
206202 throw e ;
207203 }
@@ -214,7 +210,7 @@ public virtual string Value
214210 if ( ( timeVal . Length != 2 ) && ( timeVal . Length != 4 ) && ( timeVal . Length != 6 ) )
215211 {
216212 var msg = "The length of the TM datatype value does not conform to an allowable" +
217- " format. Format should conform to HH[MM[SS[.S[S[S[S]]]]]][+/-ZZZZ]" ;
213+ " format. Format should conform to HH[MM[SS[.S[S[S[S]]]]]][+/-ZZZZ]" ;
218214 var e = new DataTypeException ( msg ) ;
219215 throw e ;
220216 }
0 commit comments