EnumNamingStrategy
Namespace: Riok.Mapperly.Abstractions
Defines the strategy to use when mapping an enum from/to string.
public enum EnumNamingStrategy
Inheritance Object → ValueType → Enum → EnumNamingStrategy
Implements IComparable, ISpanFormattable, IFormattable, IConvertible
Fields
Name | Value | Description |
---|---|---|
MemberName | 0 | Matches enum values using their name. |
CamelCase | 1 | Matches enum values using camelCase. |
PascalCase | 2 | Matches enum values using PascalCase. |
SnakeCase | 3 | Matches enum values using snake_case. |
UpperSnakeCase | 4 | Matches enum values using UPPER_SNAKE_CASE. |
KebabCase | 5 | Matches enum values using kebab-case. |
UpperKebabCase | 6 | Matches enum values using UPPER-KEBAB-CASE. |
ComponentModelDescriptionAttribute | 7 | Matches enum values using or EnumNamingStrategy.MemberName if the attribute is not present on the enum member. |
SerializationEnumMemberAttribute | 8 | Matches enum values using or EnumNamingStrategy.MemberName if the attribute is not present on the enum member. |