-Added JsonPrimitiveContract and JsonLinqContract

-Removed JsonRaw and replaced with JRaw
-Fixed properties on existing derived values not being populated during deserialization
This commit is contained in:
JamesNK
2009-12-27 03:30:43 +00:00
parent 9144bc6c80
commit 961945657a
35 changed files with 835 additions and 436 deletions
+3 -4
View File
@@ -418,12 +418,11 @@ namespace Newtonsoft.Json
serializerWriter.Serialize(jsonWriter, value);
}
internal bool HasClassConverter(Type objectType, out JsonConverter converter)
internal bool HasClassConverter(JsonContract contract, out JsonConverter converter)
{
if (objectType == null)
throw new ArgumentNullException("objectType");
if (contract == null)
throw new ArgumentNullException("contract");
JsonContract contract = ContractResolver.ResolveContract(objectType);
converter = contract.Converter;
return (converter != null);