Json.NET - Quick Starts & API Documentation
CreatePrimitiveContract Method (objectType)
Namespaces ► Newtonsoft.Json.Serialization ► DefaultContractResolver ► CreatePrimitiveContract(Type)
Creates a JsonPrimitiveContract for the given type.

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 )

- objectType (Type)
- Type of the object.

A JsonPrimitiveContract for the given type.