How to change the order of an Enum popup?

M

Mike

Hi All,

I have an enumeration type that I use for logging which is:

public enum EnumSeverity
{
Critical=0,
EventLogWrite,
Error,
Warning,
Information,
Entry,
Exit,
Create,
Destroy,
Verbose=9
}

As you can see I use this for logging so Ideally I would like the Enum
popup to come up in the order that it is in the declaration above. Ie.
By assigned numerical value rather than alphabetical value.

Does anyone know of any way I can do this please.

Thanks,
 

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