Click or drag to resize
Json.NET

DefaultContractResolverCreatePrimitiveContract Method

 
Creates a JsonPrimitiveContract for the given type.

Namespace:  Newtonsoft.Json.Serialization
Assembly:  Newtonsoft.Json (in Newtonsoft.Json.dll) Version: 12.0.1+509643a8952ce731e0207710c429ad6e67dc43db
Syntax
C#
protected virtual JsonPrimitiveContract CreatePrimitiveContract(
	Type objectType
)

Parameters

objectType
Type: SystemType
Type of the object.

Return Value

Type: JsonPrimitiveContract
A JsonPrimitiveContract for the given type.
See Also