Created
December 28, 2011 09:14
-
-
Save JoanComasFdz/1527234 to your computer and use it in GitHub Desktop.
An enumerator example type with string values.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// This is an example of how to implement | |
/// an string enum. | |
/// </summary> | |
public enum MyStringEnum | |
{ | |
[StringValue("This is the string value 1.")] | |
Member1, | |
[StringValue("This is the string value 1.")] | |
Member2, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment