-Added ReflectionDelegateFactory, DynamicReflectionDelegateFactory and LateBoundDelegateFactory to support switching between dynamic and late bound reflection for medium trust environments
-Added WriteObjectId to BsonWriter -Added BsonObjectId and BsonObjectIdConverter classes -Added KeyValuePairConverter -Added DynamicCodeGeneration flag to DefaultContractResolver -Changed JsonConverter.ReadJson to add an extra parameter: currentValue
This commit is contained in:
@@ -373,6 +373,9 @@ namespace Newtonsoft.Json
|
||||
case JsonToken.Raw:
|
||||
WriteRawValue((string)reader.Value);
|
||||
break;
|
||||
case JsonToken.Bytes:
|
||||
WriteValue((byte[])reader.Value);
|
||||
break;
|
||||
default:
|
||||
throw MiscellaneousUtils.CreateArgumentOutOfRangeException("TokenType", reader.TokenType, "Unexpected token type.");
|
||||
}
|
||||
@@ -563,7 +566,7 @@ namespace Newtonsoft.Json
|
||||
{
|
||||
}
|
||||
|
||||
private void AutoComplete(JsonToken tokenBeingWritten)
|
||||
internal void AutoComplete(JsonToken tokenBeingWritten)
|
||||
{
|
||||
int token;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user