Skip to main content

MapEnumValueAttribute

Namespace: Riok.Mapperly.Abstractions

Customizes how enum values are mapped

public sealed class MapEnumValueAttribute : System.Attribute

Inheritance ObjectAttributeMapEnumValueAttribute

Properties

Target

What to map to

public Enum Target { get; }

Property Value

Enum

Source

What to map from

public Enum Source { get; }

Property Value

Enum

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 enum value to map from

target Object
The enum value to map to