This project has moved and is read-only. For the latest updates, please go here.

JTokenReader and BsonReader implementation of ReadAsInt32 cannot convert strings

Jan 24, 2012 at 5:31 AM

Was it a simple oversight that the JTokenReader's and BsonReader's ReadAsInt32 implementation is not able to parse a TokenType of JsonToken.String into an integer?

The JsonTextReader has the code to do this.

Mar 10, 2012 at 5:26 PM

I see this has been marked as fixed in 4.0 Release 7. Thanks!

I'm still using my modified Release 6 until I have a time to compare my R6 code vs yours to be sure that was my only change. I'll validate your ReadAsXXX fix in R8 once this has been done.


Thanks again for such great work!