Enums Enums
Enums Enums
DocFX + Singulink = ♥

Search Results for

    Method WithDisplayNameGetter

    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.

    Declaration
    public EnumConvertOptions WithDisplayNameGetter()
    Returns
    Type Description
    EnumConvertOptions

    The modified options instance (same instance is returned - a new instance is not created).

    Remarks

    If an enumeration value's field does not have a DisplayAttribute or the attribute's Name property is not set, the field name of the enumeration value is used instead.

    © Singulink. All rights reserved.