string values enum in c#

Posted by Sadegh on Stack Overflow See other posts from Stack Overflow or by Sadegh
Published on 2010-06-05T09:46:41Z Indexed on 2010/06/05 9:52 UTC
Read the original article Hit count: 244

Filed under:
|

hi, there any way to define enum in C# like below?

public enum MyEnum : string
{
    EnGb = "en-gb",
    FaIr = "fa-ir",
    ...
}

© Stack Overflow or respective owner

Related posts about c#

Related posts about enums