JsonPrimitiveContract public class JsonPrimitiveContract : JsonContract Contract details for a Type used by the JsonSerializer. Documentation Code public JsonPrimitiveContract(Type underlyingType) Initializes a new instance of the JsonPrimitiveContract class.