repo.or.cz
/
mono-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[tuner] handle the case with multiple "preserve" attributes
[mono-project.git]
/
mcs
/
tests
/
test-127.cs
blob
6d8495fa73a896b3d10b8176ba39d7cfce7ce2c5
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
public 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
}