Table of Contents

Class DynamoDbConverterAttribute

Namespace
DynaSharp.Mapping
Assembly
DynaSharp.dll

Selects the converter of a property, or of a type wherever it is used, including inside collections. A converter on a property wins over one on the property's type, and both win over DynamoDbDefaultConverterAttribute and the built-in converters.

[AttributeUsage(AttributeTargets.Class|AttributeTargets.Struct|AttributeTargets.Enum|AttributeTargets.Property, AllowMultiple = false, Inherited = false)]
public sealed class DynamoDbConverterAttribute : Attribute
Inheritance
DynamoDbConverterAttribute
Inherited Members

Remarks

The converter implements IDynamoDbConverter<T> for the value type without nullability: a converter on a DateTimeOffset? property implements it for DateTimeOffset, and the generator adds the null handling.

Constructors

DynamoDbConverterAttribute(Type)

Initializes a new instance of the DynamoDbConverterAttribute class.

public DynamoDbConverterAttribute(Type converterType)

Parameters

converterType Type

The converter type, closed over its type arguments.

Properties

ConverterType

Gets the converter type.

public Type ConverterType { get; }

Property Value

Type