Json.NET - Quick Starts & API Documentation
CreateObjectContract Method (objectType)
Namespaces ► Newtonsoft.Json.Serialization ► DefaultContractResolver ► CreateObjectContract(Type)
Creates a JsonObjectContract for the given type.
Declaration Syntax
C# | Visual Basic | Visual C++ |
protected virtual JsonObjectContract CreateObjectContract( Type objectType )
Protected Overridable Function CreateObjectContract ( _ objectType As Type _ ) As JsonObjectContract
protected: virtual JsonObjectContract^ CreateObjectContract( Type^ objectType )
Parameters
- objectType (Type)
- Type of the object.
Return Value
A JsonObjectContract for the given type.