I have an existing enum with numerous items in it.
I also have existing code which does certain things with this enum.
I would now like a way to view only a subset enum members. What I'm looking for is a way to divide my enum into groups. I need to preserve the (int) value of each member and I need to preserve the ability to view all enum members if needed.
The only thing I can think of is to just create a new enum for each subenum that only contain the items I want using the same name and value.
This works but violates the whole no repetition principle.
I don't expect anyone to have a better alternative but I thought I'd ask just in case someone had a fancy trick to show me.
Thanks, as always.