|
-
October 17th, 2007, 02:32 PM
#8
Re: Use enum from another class?
Create an empty code file and give it a namespace and create a public enum without a class.
Then you can utilize the namespace reference and call the public enum from any class that your namespace is referenced.
Enums do not need to be in class files.
In fact I use public enums all the in my business entities layer.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|