Class MessagePackConverterAttribute
- Namespace
- Nerdbank.MessagePack
- Assembly
- Nerdbank.MessagePack.dll
A class applied to a custom data type to prescribe a custom MessagePackConverter<T> implementation to use for serialization.
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Struct|AttributeTargets.Interface, AllowMultiple = false, Inherited = false)]
public class MessagePackConverterAttribute : Attribute
- Inheritance
-
MessagePackConverterAttribute
- Inherited Members
Constructors
MessagePackConverterAttribute(Type)
Initializes a new instance of the MessagePackConverterAttribute class.
public MessagePackConverterAttribute(Type converterType)
Parameters
converterType
TypeA type that implements MessagePackConverter<T> where
T
is a type argument matching the type to which this attribute is applied.
Properties
ConverterType
Gets the type that implements MessagePackConverter<T>.
public Type ConverterType { get; }