Json.NET - Quick Starts & API Documentation
CreateContract Method (objectType)
Namespaces ► Newtonsoft.Json.Serialization ► DefaultContractResolver ► CreateContract(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.