Welcome to mirror list, hosted at ThFree Co, Russian Federation.

test-608.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c5638962762b386ef3f7fc9ba88f123a71079cce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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;
	}
}