Class EnumConvertOptions
Provides options for customizing enumeration string conversion behavior.
Inherited Members
Namespace: Singulink.Enums
Assembly: Singulink.Enums.dll
Syntax
public class EnumConvertOptions
Properties
Name | Description |
---|---|
IgnoreCase | Gets or sets a value indicating whether the enumeration parser should ignore case when matching names. Defaults to false. |
NameGetter | Gets or sets a function that customizes the names of enumeration values. Defaults to the field name of the enumeration value. |
Separator | Gets or sets a string containing a separator character with an optional leading and trailing space to be used for flags enumerations. Ignored for
non-flags enumerations. Defaults to |
Methods
Name | Description |
---|---|
WithDisplayNameGetter() | Sets the NameGetter property on this instance to a function that gets the names of enumeration values from the DisplayAttribute's Name property on each enumeration value's field, if present. |