-Added DateTimeKindHandling to BsonWriter to control how a DateTime is converted prior to being serialized
-Added Required.Always attribute validation when writing JSON as well reading -Added TypeNameHandling.Auto to automatically write the type name when a value doesn't match the declared type -Fixed reading multi-byte strings in BSON
This commit is contained in:
@@ -109,7 +109,7 @@ namespace Newtonsoft.Json
|
||||
get { return _typeNameHandling; }
|
||||
set
|
||||
{
|
||||
if (value < TypeNameHandling.None || value > TypeNameHandling.All)
|
||||
if (value < TypeNameHandling.None || value > TypeNameHandling.Auto)
|
||||
throw new ArgumentOutOfRangeException("value");
|
||||
|
||||
_typeNameHandling = value;
|
||||
|
||||
Reference in New Issue
Block a user