By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,219 Members | 2,147 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,219 IT Pros & Developers. It's quick & easy.

Viewing enum values in a specific order?

P: n/a
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?

Mar 29 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
AFAIK, no.

--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio
You can code, design and document much faster:
http://www.mztools.com
"mrmagoo" <-> escribió en el mensaje
news:%2****************@TK2MSFTNGP14.phx.gbl...
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?

Mar 30 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.