a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
29 lines
334 B
C#
29 lines
334 B
C#
using System;
|
|
|
|
class X
|
|
{
|
|
enum Foo {
|
|
A, B
|
|
}
|
|
|
|
enum Bar {
|
|
C, D
|
|
}
|
|
|
|
public static void Main ()
|
|
{
|
|
Foo foo = Foo.A;
|
|
Enum se = (Enum) foo;
|
|
Enum sc = (Enum) Foo.A;
|
|
object obj1 = (object) foo;
|
|
object obj2 = (object) Foo.A;
|
|
|
|
Bar bar = (Bar) se;
|
|
Foo blah = (Foo) obj1;
|
|
|
|
Enum Ea = Foo.A;
|
|
|
|
IConvertible iconv = Ea;
|
|
}
|
|
}
|