Hi,
namespace EnumTest
{
class Class1
{
public enum num
{
one = 1,
uno = 1,
eins = 1
}
[STAThread]
static void Main(string[] args)
{
Console.WriteLine( num.eins );
Console.WriteLine( num.uno );
Console.WriteLine( num.one );
}
}
}
outputs:
uno
uno
uno
How can I get the following output:
eins
uno
one
Origin Problem: I have a large Enum list with some double
values in it and need access to its diffrent names.
Anybody know, how to do this?
thanks
David