-Fix deserializing empty BSON structures
-Fix error message when attempting to deserialize custom dictionary with no default constructor -Fix serializing private base members marked with JsonProperty attribute -Fix performance issue when deserializing to object member
This commit is contained in:
@@ -265,11 +265,6 @@ namespace Newtonsoft.Json.Bson
|
||||
newContext.Length = ReadInt32();
|
||||
return true;
|
||||
}
|
||||
case State.ObjectStart:
|
||||
{
|
||||
SetToken(JsonToken.PropertyName, ReadElement());
|
||||
return true;
|
||||
}
|
||||
case State.Complete:
|
||||
case State.Closed:
|
||||
return false;
|
||||
@@ -278,10 +273,8 @@ namespace Newtonsoft.Json.Bson
|
||||
ReadType(_currentElementType);
|
||||
return true;
|
||||
}
|
||||
case State.ObjectStart:
|
||||
case State.ArrayStart:
|
||||
ReadElement();
|
||||
ReadType(_currentElementType);
|
||||
return true;
|
||||
case State.PostValue:
|
||||
ContainerContext context = _currentContext;
|
||||
if (context == null)
|
||||
|
||||
Reference in New Issue
Block a user