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

test-127.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 6d8495fa73a896b3d10b8176ba39d7cfce7ce2c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//
// It is possible to invoke Enum methods on an enum type.
//
using System;

enum Test {
	A,
	B,
	C
}

class X {

	public static int Main ()
	{
		Test test = Test.A;

		if (!Test.IsDefined (typeof (Test), test))
			return 1;

		return 0;
	}
}