Table of Contents

Interface IMessagePackConverterFactory

Namespace
Nerdbank.MessagePack
Assembly
Nerdbank.MessagePack.dll

A factory for MessagePackConverter<T> objects of arbitrary types.

public interface IMessagePackConverterFactory

Methods

CreateConverter<T>(ITypeShape<T>)

Creates a converter for the given type if this factory is capable of it.

MessagePackConverter<T>? CreateConverter<T>(ITypeShape<T> shape)

Parameters

shape ITypeShape<T>

The shape of the type to be serialized.

Returns

MessagePackConverter<T>

The converter for the data type, or null.

Type Parameters

T

The data type.