You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @ardalis I know there has been some discussion here #293 about getting all the enum values.
What is your current approach to displaying enum values in a specific order?
I've potentially thought about adding a new implementation of the List property to my enum type
publicstaticnewIReadOnlyCollection<MyEnum>List
And returning the values in the order I want, unless that causes problems in other places this is used.
Or adding a GetAll() but then I think that is confusing when you have the List property.
Adding the source generator in #259 could define an order e.g. [EnumMember(Order = 1)] or some other method i.e. the order in which they are defined on the class, but I don't know the status of this item.
The text was updated successfully, but these errors were encountered:
Hi @ardalis I know there has been some discussion here #293 about getting all the enum values.
What is your current approach to displaying enum values in a specific order?
I've potentially thought about adding a new implementation of the List property to my enum type
And returning the values in the order I want, unless that causes problems in other places this is used.
Or adding a
GetAll()
but then I think that is confusing when you have the List property.Adding the source generator in #259 could define an order e.g.
[EnumMember(Order = 1)]
or some other method i.e. the order in which they are defined on the class, but I don't know the status of this item.The text was updated successfully, but these errors were encountered: