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
2009-03-11 Zoltan Varga <vargaz@gmail.com>
[mcs.git]
/
tests
/
test-127.cs
blob
1ca2bed744955a4a01d565dddc69cc520bfc1841
1
//
2
// It is possible to invoke Enum methods on an enum type.
3
//
4
using
System
;
5
6
enum
Test
{
7
A
,
8
B
,
9
C
10
}
11
12
class
X
{
13
14
static int
Main
()
15
{
16
Test test
=
Test
.
A
;
17
18
if
(!
Test
.
IsDefined
(
typeof
(
Test
),
test
))
19
return
1
;
20
21
return
0
;
22
}
23
}