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

cs0176-5.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f912acaff5709c3d1de84636e8e6eeb0bb1a047f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// CS0176: Static member `MyEnum.Foo' cannot be accessed with an instance reference, qualify it with a type name instead
// Line: 14

public enum MyEnum
{
	Foo = 1
}

public class Test
{
	static void Main ()
	{
		MyEnum theEnum = MyEnum.Foo;
		if (theEnum == theEnum.Foo)
		{
		}
	}
}