This commit is contained in:
James Newton-King
2018-02-11 12:17:14 +13:00
parent e9e2d006a5
commit 9495a9ffce
@@ -193,10 +193,7 @@ namespace Newtonsoft.Json.Serialization
/// <returns>The contract for a given type.</returns>
public virtual JsonContract ResolveContract(Type type)
{
if (type == null)
{
throw new ArgumentNullException(nameof(type));
}
ValidationUtils.ArgumentNotNull(type, nameof(type));
return _contractCache.Get(type);
}