Viewing enum values in a specific order?

M

mrmagoo

Is it possible to view enum values in the order that I have defined them?

Public Enum Size
Small
Medium
Large
Biggest
End Enum

I love Enums because they make my life easier, but, because they are
alphabetized, it seems easier to make a mistake and pick the wrong one. When
I assign a value from this enumeration, I think "I'll pick the last one
because that's the biggest", but the I have to do a double-take and search
within the list because they have been alphabetized.

Is there a way to preserve the original list order?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top