repo.or.cz
/
mcs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
bring XslCompiledTransform to MonoTouch
[mcs.git]
/
errors
/
cs0176-5.cs
blob
f912acaff5709c3d1de84636e8e6eeb0bb1a047f
1
// CS0176: Static member `MyEnum.Foo' cannot be accessed with an instance reference, qualify it with a type name instead
2
// Line: 14
3
4
public enum
MyEnum
5
{
6
Foo
=
1
7
}
8
9
public class
Test
10
{
11
static void
Main
()
12
{
13
MyEnum theEnum
=
MyEnum
.
Foo
;
14
if
(
theEnum
==
theEnum
.
Foo
)
15
{
16
}
17
}
18
}