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
Bump external/ikdasm to master.
[mono-project.git]
/
mono
/
tests
/
interfacecast.cs
blob
3f7080ca6783a21a688e2fc62481ee5b8ae639db
1
using
System
;
2
3
public class
Test
{
4
5
public enum
MyEnum
{
6
ZERO
,
7
ONE
8
}
9
10
public static int
Main
() {
11
MyEnum en
=
MyEnum
.
ONE
;
12
IComparable ic
;
13
object
o
=
en
;
14
15
ic
= (
IComparable
)
o
;
16
17
ic
= (
object
)
en
as
IComparable
;
18
if
(
ic
==
null
)
19
return
1
;
20
21
return
0
;
22
}
23
}