Table of Contents

Class MessagePackConverterFactoryExtensions

Namespace
Nerdbank.MessagePack
Assembly
Nerdbank.MessagePack.dll

Extension methods for the IMessagePackConverterFactory interface.

public static class MessagePackConverterFactoryExtensions
Inheritance
MessagePackConverterFactoryExtensions
Inherited Members

Methods

Invoke<T>(T, ITypeShape, object?)

Calls the Invoke<T>(ITypeShape<T>, object) method on the given factory.

public static MessagePackConverter? Invoke<T>(this T self, ITypeShape shape, object? state = null) where T : IMessagePackConverterFactory, ITypeShapeFunc

Parameters

self T

The instance of the factory.

shape ITypeShape

The shape to create a converter for.

state object

Optional state to pass onto the inner method.

Returns

MessagePackConverter

The converter.

Type Parameters

T

The concrete IMessagePackConverterFactory type.