I have this Enum:
<Flags()>
Public Enum FilterEnum As Integer
Green= 0
Blue = 1
Red = 2
Yellow = 4
End Enum
I would like to give to "Green" and "Yellow" some kind of an attribute so when i get the enum like this:
Dim enumItems = [Enum].GetValues(myEnum)
I will get only the Enum value of those who has that attribute, something like this:
Dim enumItems = [Enum].GetValues(myEnum).where(function(o) o.myAttribute)