CreateContract Method (objectType)

Json.NET

Json.NET - Quick Starts & API Documentation CreateContract Method (objectType)
NamespacesNewtonsoft.Json.SerializationDefaultContractResolverCreateContract(Type)
Determines which contract type is created for the given type.
Declaration Syntax
C# Visual Basic Visual C++
protected virtual JsonContract CreateContract(
	Type objectType
)
Protected Overridable Function CreateContract ( _
	objectType As Type _
) As JsonContract
protected:
virtual JsonContract^ CreateContract(
	Type^ objectType
)
Parameters
objectType (Type)
Type of the object.
Return Value
A JsonContract for the given type.

Assembly: Newtonsoft.Json (Module: Newtonsoft.Json) Version: 4.5.0.0 (4.5.6.14930)