-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:
JamesNK
2010-01-16 06:10:10 +00:00
parent 75649bfa00
commit f9b34390f5
7 changed files with 232 additions and 28 deletions
+1 -8
View File
@@ -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)