On 4/5/13, Chad Joan <[email protected]> wrote: > Enums do not have instances.
Sure they do.
enum Foo
{
X,
Y
}
void test(Foo foo) { }
void main()
{
Foo foo = Foo.Y;
test(foo);
}
On 4/5/13, Chad Joan <[email protected]> wrote: > Enums do not have instances.
Sure they do.
enum Foo
{
X,
Y
}
void test(Foo foo) { }
void main()
{
Foo foo = Foo.Y;
test(foo);
}