Enums Enums
Enums Enums
DocFX + Singulink = ♥

Search Results for

    Class EnumConvertOptions

    Provides options for customizing enumeration string conversion behavior.

    Inheritance
    object
    EnumConvertOptions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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 ", " (comma followed by a space).

    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.

    © Singulink. All rights reserved.