Table of Contents

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

converterType Type

A type that implements ShapeShiftConverter<T, TEncoder, TDecoder> where T is 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; }

Property Value

Type