|
-
Feb 20th, 2012, 07:51 PM
#8
Re: Best Substitute for Enum of Strings?
 Originally Posted by Niya
The key to making this work is the completionlist tag above the class declarations.
I've never seen that before, can't find any information on Google, and can't see any difference when I try it in code. What does this do?
[Edit: I would agree with tg that in this case an object enumeration seems slightly overkill. Normally I'd agree with that approach though, but there doesn't really seem to be a need for encoding the concept of a Mask. They are consumed by the UI controls as strings, and I don't see any particular reason to worry about type safety here. YMMV of course.]
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
|