Table of Contents

OptionJsonConverterFactory Class

Definition

Namespace
Tyne
Assembly
Tyne.Core.dll

Supports converting Option<T>s to/from JSON using a factory pattern.

public sealed class OptionJsonConverterFactory : JsonConverterFactory
Inheritance
OptionJsonConverterFactory

Methods

CanConvert(Type)

Determines whether the typeToConvert can be converted to an Option<T>.

CreateConverter(Type, JsonSerializerOptions)

Creates a JsonConverter for the provided typeToConvert.

See Also

Option<T>