Enums Enums
Enums Enums
DocFX + Singulink = ♥

Search Results for

    Property NameGetter

    NameGetter

    Gets or sets a function that customizes the names of enumeration values. Defaults to the field name of the enumeration value.

    Declaration
    public Func<FieldInfo, string> NameGetter { get; set; }
    Property Value
    Type Description
    Func<FieldInfo, string>
    Remarks

    The WithDisplayNameGetter() method can be used to set this property to a function that gets the names of enumeration values from the DisplayAttribute on each value's field.

    © Singulink. All rights reserved.