Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EntryConvert does not support DisplayAttribute on enum members #400

Open
dbeuchler opened this issue Mar 20, 2024 · 0 comments
Open

EntryConvert does not support DisplayAttribute on enum members #400

dbeuchler opened this issue Mar 20, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@dbeuchler
Copy link
Member

Is your feature request related to a problem? Please describe.
Using DisplayAttribute on enum members does not have any effect.

public enum MyFoo
{
    [Display(Name = "One")]
    Foo1,
    [Display(Name = "Two")]
    Foo2
}

public class MyClass
{
    public MyFoo MyFoo { get; set; }
}

The possible values property is not using the value of the DisplayAttribute.

Describe the solution you'd like
Support DisplayAttribute on enum members

@dbeuchler dbeuchler added the enhancement New feature or request label Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant