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
* TreeView.cs: Allow more explicit setting of top node
[mono-project.git]
/
mcs
/
tests
/
test-126.cs
blob
26ed4190a206e8f9dedd72e06833525f2cafbb1b
1
//
2
// It is possible to invoke object methods in an interface.
3
//
4
using
System
;
5
6
interface
Iface
{
7
void
Method
();
8
}
9
10
class
X
:
Iface
{
11
12
void
Iface
.
Method
() {}
13
14
static int
Main
()
15
{
16
X x
=
new
X
();
17
Iface f
=
x
;
18
19
if
(
f
.
ToString
() !=
"X"
)
20
return
1
;
21
22
return
0
;
23
}
24
}