MapEnumValueAttribute
Namespace: Riok.Mapperly.Abstractions
Customizes how enum values are mapped
public sealed class MapEnumValueAttribute : System.Attribute
Inheritance Object → Attribute → MapEnumValueAttribute
Properties
Target
What to map to
public Enum Target { get; }
Property Value
Source
What to map from
public Enum 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 enum value to map from
target
Object
The enum value to map to