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)

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

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

Parameters

self T

The instance of the factory.

shape ITypeShape

The shape to create a converter for.

Returns

MessagePackConverter

The converter.

Type Parameters

T

The concrete IMessagePackConverterFactory type.