Enums with string values ?? 'fraid it ain't that straightforward,
buddy. You can't have string Enums unless you use extension methods
and/or custom attributes.

On Nov 28, 11:47 pm, "Brandon Betances" <[EMAIL PROTECTED]> wrote:
> cant you just add the value to the enum itself? dunno if you can in
> VB.NETbut in C# you can do this:
>
> enum States { value1 = 1, value2, value3, value4, value1 = "string", value2
> = "string", value3 = "string", value4 = "string" }
> States state = States.Value1;
> ConsoleWriteLine((string)state);
>
> dunno if it works, didnt try it, but you get the idea.

Reply via email to