JsonCachingSerializer(JsonSerializerOptions)
Initializes a new instance of the JsonCachingSerializer class.
Declaration
[RequiresUnreferencedCode("The serializer resolves the type of a cached value by name, and serializes it with the reflection-based JsonSerializer unless the TypeInfoResolver of the options is a source-generated JsonSerializerContext.")]
[RequiresDynamicCode("The serializer resolves the type of a cached value by name, and serializes it with the reflection-based JsonSerializer unless the TypeInfoResolver of the options is a source-generated JsonSerializerContext.")]
public JsonCachingSerializer(JsonSerializerOptions options = null)Parameters
| Type | Name | Description |
|---|---|---|
| JsonSerializerOptions | options | The optional options for the JsonSerializer. |