CodeDom creating an enum

G

Guest

All I can manage is
public enum myEnumName



The only place where implementation seems to fit in a type declaration is in the Members property
Only problem is that the IsEnum switch seems to make the type declaration ignore any constructor or method members, so where on earth do I put the code? (e.g Null = 0, England = 1, Scotland = 2, Wales = 3, etc)

Jax
 

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