|
-
Feb 20th, 2012, 05:01 PM
#1
Thread Starter
Member
Best Substitute for Enum of Strings?
For lack of better words, I would like to make an enum of strings. There are several masks for text boxes that I would like to standardize in our system.
For simplicity lets say there are 2 masks:
"PhoneNumber" which is "(999)000-0000"
"Zip Code" which is "00000-9999"
I would like to be able to reference these through out the entire program in a manner such as:
DefaultMasks.ZipCode or DefaultMasks.PhoneNumber
Since enums can not be of string type, what would your best suggestions be as to how I could do this.
I had thought about a class with constants in it but I was not sure how to implement that properly.
Thanks in advance for any help,
RH
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
|