-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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user