Skip to content

Instantly share code, notes, and snippets.

@JoanComasFdz
Created December 28, 2011 09:14
Show Gist options
  • Save JoanComasFdz/1527234 to your computer and use it in GitHub Desktop.
Save JoanComasFdz/1527234 to your computer and use it in GitHub Desktop.
An enumerator example type with string values.
/// <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