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
TThe instance of the factory.
shape
ITypeShapeThe shape to create a converter for.
Returns
- MessagePackConverter
The converter.
Type Parameters
T
The concrete IMessagePackConverterFactory type.