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
Source
What to map from
public object Source { get; }
Property Value
TypeId
public object TypeId { get; }
Property Value
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