EnumMappingStrategy
Namespace: Riok.Mapperly.Abstractions
Defines the strategy to use when mapping an enum to another enum.
public enum EnumMappingStrategy
Inheritance Object → ValueType → Enum → EnumMappingStrategy
Implements IComparable, IFormattable, IConvertible
Fields
Name | Value | Description |
---|---|---|
ByValue | 0 | Matches enum members by their values. |
ByName | 1 | Matches enum members by their names. |
ByValueCheckDefined | 2 | Matches enum members by their values. Checks if the value is defined in the enum. |