Table of Contents

Struct JsonConverterFactoryContext

Namespace
Nerdbank.Json
Assembly
Nerdbank.Json.dll

Provides converter lookup services while a IJsonConverterFactory is creating a converter.

public readonly struct JsonConverterFactoryContext
Inherited Members

Methods

GetConverter<T>()

Gets a converter for a specific type.

public JsonConverter<T> GetConverter<T>() where T : IShapeable<T>

Returns

JsonConverter<T>

The converter.

Type Parameters

T

The type to convert.

GetConverter<T>(ITypeShape<T>)

Gets a converter for a specific type shape.

public JsonConverter<T> GetConverter<T>(ITypeShape<T> shape)

Parameters

shape ITypeShape<T>

The type shape.

Returns

JsonConverter<T>

The converter.

Type Parameters

T

The type to convert.

GetConverter<T, TProvider>()

Gets a converter for a specific type.

public JsonConverter<T> GetConverter<T, TProvider>() where TProvider : IShapeable<T>

Returns

JsonConverter<T>

The converter.

Type Parameters

T

The type to convert.

TProvider

The witness type that provides the shape for T.