Newtonsoft.Json.Serialization.DefaultContractResolver.CreatePrimitiveContract C# (CSharp) Method

CreatePrimitiveContract() protected method

Creates a JsonPrimitiveContract for the given type.
protected CreatePrimitiveContract ( Type objectType ) : Newtonsoft.Json.Serialization.JsonPrimitiveContract
objectType System.Type Type of the object.
return Newtonsoft.Json.Serialization.JsonPrimitiveContract
    protected virtual JsonPrimitiveContract CreatePrimitiveContract(Type objectType)
    {
      JsonPrimitiveContract contract = new JsonPrimitiveContract(objectType);
      InitializeContract(contract);
      
      return contract;
    }