-Fixed exception message typo

-Fixed serializer sometimes not using DateParseHandling setting
-Fixed error in JsonWriter.WriteToken when writing a DateTimeOffset
-Fixed error when serializing emitted classes that have a constructor with null named parameters (really?)
This commit is contained in:
James Newton-King
2012-10-02 21:54:10 +13:00
parent 0bf5f27f2f
commit e2a0191ee5
8 changed files with 47 additions and 13 deletions
+1 -1
View File
@@ -530,7 +530,7 @@ namespace Newtonsoft.Json
reader.DateTimeZoneHandling = _dateTimeZoneHandling.Value;
}
DateParseHandling? previousDateParseHandling = null;
if (_dateParseHandling != null && reader.DateTimeZoneHandling != _dateTimeZoneHandling)
if (_dateParseHandling != null && reader.DateParseHandling != _dateParseHandling)
{
previousDateParseHandling = reader.DateParseHandling;
reader.DateParseHandling = _dateParseHandling.Value;