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