@@ -70,9 +70,9 @@ private static void ProcessGrayscale<TPixel>(Configuration configuration, Buffer
7070        { 
7171            for  ( int  x  =  0 ;  x  <  width ;  x ++ ) 
7272            { 
73-                 stream . TryReadDecimal ( out  int  value ) ; 
73+                 stream . ReadDecimal ( out  int  value ) ; 
7474                rowSpan [ x ]  =  new  L8 ( ( byte ) value ) ; 
75-                 eofReached  =  ! stream . TrySkipWhitespaceAndComments ( ) ; 
75+                 eofReached  =  ! stream . SkipWhitespaceAndComments ( ) ; 
7676                if  ( eofReached ) 
7777                { 
7878                    break ; 
@@ -106,9 +106,9 @@ private static void ProcessWideGrayscale<TPixel>(Configuration configuration, Bu
106106        { 
107107            for  ( int  x  =  0 ;  x  <  width ;  x ++ ) 
108108            { 
109-                 stream . TryReadDecimal ( out  int  value ) ; 
109+                 stream . ReadDecimal ( out  int  value ) ; 
110110                rowSpan [ x ]  =  new  L16 ( ( ushort ) value ) ; 
111-                 eofReached  =  ! stream . TrySkipWhitespaceAndComments ( ) ; 
111+                 eofReached  =  ! stream . SkipWhitespaceAndComments ( ) ; 
112112                if  ( eofReached ) 
113113                { 
114114                    break ; 
@@ -142,20 +142,20 @@ private static void ProcessRgb<TPixel>(Configuration configuration, Buffer2D<TPi
142142        { 
143143            for  ( int  x  =  0 ;  x  <  width ;  x ++ ) 
144144            { 
145-                 if  ( ! stream . TryReadDecimal ( out  int  red )  || 
146-                     ! stream . TrySkipWhitespaceAndComments ( )  || 
147-                     ! stream . TryReadDecimal ( out  int  green )  || 
148-                     ! stream . TrySkipWhitespaceAndComments ( ) ) 
145+                 if  ( ! stream . ReadDecimal ( out  int  red )  || 
146+                     ! stream . SkipWhitespaceAndComments ( )  || 
147+                     ! stream . ReadDecimal ( out  int  green )  || 
148+                     ! stream . SkipWhitespaceAndComments ( ) ) 
149149                { 
150150                    // Reached EOF before reading a full RGB value 
151151                    eofReached  =  true ; 
152152                    break ; 
153153                } 
154154
155-                 stream . TryReadDecimal ( out  int  blue ) ; 
155+                 stream . ReadDecimal ( out  int  blue ) ; 
156156
157157                rowSpan [ x ]  =  new  Rgb24 ( ( byte ) red ,  ( byte ) green ,  ( byte ) blue ) ; 
158-                 eofReached  =  ! stream . TrySkipWhitespaceAndComments ( ) ; 
158+                 eofReached  =  ! stream . SkipWhitespaceAndComments ( ) ; 
159159                if  ( eofReached ) 
160160                { 
161161                    break ; 
@@ -189,20 +189,20 @@ private static void ProcessWideRgb<TPixel>(Configuration configuration, Buffer2D
189189        { 
190190            for  ( int  x  =  0 ;  x  <  width ;  x ++ ) 
191191            { 
192-                 if  ( ! stream . TryReadDecimal ( out  int  red )  || 
193-                     ! stream . TrySkipWhitespaceAndComments ( )  || 
194-                     ! stream . TryReadDecimal ( out  int  green )  || 
195-                     ! stream . TrySkipWhitespaceAndComments ( ) ) 
192+                 if  ( ! stream . ReadDecimal ( out  int  red )  || 
193+                     ! stream . SkipWhitespaceAndComments ( )  || 
194+                     ! stream . ReadDecimal ( out  int  green )  || 
195+                     ! stream . SkipWhitespaceAndComments ( ) ) 
196196                { 
197197                    // Reached EOF before reading a full RGB value 
198198                    eofReached  =  true ; 
199199                    break ; 
200200                } 
201201
202-                 stream . TryReadDecimal ( out  int  blue ) ; 
202+                 stream . ReadDecimal ( out  int  blue ) ; 
203203
204204                rowSpan [ x ]  =  new  Rgb48 ( ( ushort ) red ,  ( ushort ) green ,  ( ushort ) blue ) ; 
205-                 eofReached  =  ! stream . TrySkipWhitespaceAndComments ( ) ; 
205+                 eofReached  =  ! stream . SkipWhitespaceAndComments ( ) ; 
206206                if  ( eofReached ) 
207207                { 
208208                    break ; 
@@ -236,10 +236,10 @@ private static void ProcessBlackAndWhite<TPixel>(Configuration configuration, Bu
236236        { 
237237            for  ( int  x  =  0 ;  x  <  width ;  x ++ ) 
238238            { 
239-                 stream . TryReadDecimal ( out  int  value ) ; 
239+                 stream . ReadDecimal ( out  int  value ) ; 
240240
241241                rowSpan [ x ]  =  value  ==  0  ?  White  :  Black ; 
242-                 eofReached  =  ! stream . TrySkipWhitespaceAndComments ( ) ; 
242+                 eofReached  =  ! stream . SkipWhitespaceAndComments ( ) ; 
243243                if  ( eofReached ) 
244244                { 
245245                    break ; 
0 commit comments