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
selfTThe instance of the factory.
shapeITypeShapeThe shape to create a converter for.
stateobjectOptional state to pass onto the inner method.
Returns
- MessagePackConverter
The converter.
Type Parameters
TThe concrete IMessagePackConverterFactory type.