-XML documentation
-Removed generic serialize methods
This commit is contained in:
James Newton-King
2013-03-24 14:49:54 +13:00
parent c4d375dd69
commit 787bde6e15
14 changed files with 185 additions and 51 deletions
@@ -56,13 +56,13 @@ namespace Newtonsoft.Json.Serialization
{
}
public void Serialize(JsonWriter jsonWriter, object value, Type rootType)
public void Serialize(JsonWriter jsonWriter, object value, Type objectType)
{
if (jsonWriter == null)
throw new ArgumentNullException("jsonWriter");
if (rootType != null)
_rootContract = Serializer.ContractResolver.ResolveContract(rootType);
if (objectType != null)
_rootContract = Serializer.ContractResolver.ResolveContract(objectType);
SerializeValue(jsonWriter, value, GetContractSafe(value), null, null, null);
}