JsonCachingSerializer(JsonSerializerOptions?)
Initializes a new instance of the JsonCachingSerializer class.
Declaration
public JsonCachingSerializer(JsonSerializerOptions? options = null)Parameters
| Type | Name | Description |
|---|---|---|
| JsonSerializerOptions | options | Optional JsonSerializerOptions to customize JSON serialization.
If |
Remarks
The options given by the caller are copied, because this constructor adds the converter of the unions of C# 15 to them, and modifying the instance of the caller would change the behaviour of every other use of it. A modification that the caller makes to its own instance after this constructor returns has no effect on this serializer.