Class ShapeShiftConverterAttribute
- Namespace
- ShapeShift
- Assembly
- ShapeShift.dll
A class applied to a custom data type to prescribe a custom ShapeShiftConverter<T, TEncoder, TDecoder> implementation to use for serialization.
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Struct|AttributeTargets.Enum|AttributeTargets.Property|AttributeTargets.Field|AttributeTargets.Interface|AttributeTargets.Parameter, AllowMultiple = false, Inherited = false)]
[AssociatedTypeAttribute("converterType", TypeShapeRequirements.Constructor)]
public class ShapeShiftConverterAttribute : Attribute
- Inheritance
-
ShapeShiftConverterAttribute
- Inherited Members
Constructors
ShapeShiftConverterAttribute(Type)
Initializes a new instance of the ShapeShiftConverterAttribute class.
public ShapeShiftConverterAttribute(Type converterType)
Parameters
converterTypeTypeA type that implements ShapeShiftConverter<T, TEncoder, TDecoder> where
Tis a type argument matching the type to which this attribute is applied.
Properties
ConverterType
Gets the type that implements ShapeShiftConverter<T, TEncoder, TDecoder>.
[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicParameterlessConstructor)]
public Type ConverterType { get; }