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