Skip to main content

MapEnumValueAttribute

Namespace: Riok.Mapperly.Abstractions

Customizes how enum values are mapped

public sealed class MapEnumValueAttribute : System.Attribute

Inheritance Object → Attribute → MapEnumValueAttribute
Attributes NullableContextAttribute, NullableAttribute, AttributeUsageAttribute, ConditionalAttribute

Properties​

Target​

What to map to

public object Target { get; }

Property Value​

Object

Source​

What to map from

public object Source { get; }

Property Value​

Object

TypeId​

public object TypeId { get; }

Property Value​

Object

Constructors​

MapEnumValueAttribute(Object, Object)​

Customizes how enum values are mapped

public MapEnumValueAttribute(object source, object target)

Parameters​

source Object
The value to map from

target Object
The value to map to