T Tom Jones Apr 26, 2004 #1 Is there something wrong with doing this: class Foo { void SomeMethod() { enum Test { A, B, C }; // use Test ... } }
Is there something wrong with doing this: class Foo { void SomeMethod() { enum Test { A, B, C }; // use Test ... } }
I Ignacio Machin \( .NET/ C# MVP \) Apr 26, 2004 #2 Hi, You cannot declarate a enum inside a method, you can declare it inside the class though. Cheers,
R Roger Apr 26, 2004 #3 A Type can only be declared at the class or namespace level, not in a method. Roger