Constructor
JsonContentTypeHandler constructor
JsonContentTypeHandler(IJsonTypeInfoResolver, JsonSerializerOptions) #
Initializes a new instance of the JsonContentTypeHandler class with the specified type resolver and serializer options.
public JsonContentTypeHandler(IJsonTypeInfoResolver typeResolver, JsonSerializerOptions serializerOptions)Parameters #
typeResolver IJsonTypeInfoResolver
The JSON type info resolver.
serializerOptions JsonSerializerOptions
The JSON serializer options.
JsonContentTypeHandler(JsonSerializerOptions) #
Initializes a new instance of the JsonContentTypeHandler class with the specified serializer options and a default type resolver.
[RequiresDynamicCode("This method calls the JsonSerializerOptions.Default, which requires dynamic code.")]
[RequiresUnreferencedCode("This method calls the JsonSerializerOptions.Default, which requires unreferenced code.")]
public JsonContentTypeHandler(JsonSerializerOptions serializerOptions)Parameters #
serializerOptions JsonSerializerOptions
The JSON serializer options.
JsonContentTypeHandler() #
Initializes a new instance of the JsonContentTypeHandler class with default serializer options and type resolver.
[RequiresDynamicCode("This method calls the JsonSerializerOptions.Default, which requires dynamic code.")]
[RequiresUnreferencedCode("This method calls the JsonSerializerOptions.Default, which requires unreferenced code.")]
public JsonContentTypeHandler()