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
[2019-12] [threads] Add back mono_threads_attach_tools_thread as a public API (#18074)
[mono-project.git]
/
mono
/
tests
/
iface.cs
blob
5596a3bbddefce4b1f3c52fd34134b450d8800c5
1
public interface
IHelloWorldWriter
2
{
3
int
WriteIt
();
4
}
5
6
public class
RealWriter
:
IHelloWorldWriter
7
{
8
public int
WriteIt
()
9
{
10
return
33
;
11
}
12
}
13
14
public class
ProjectName
{
15
static int
Main
()
16
{
17
IHelloWorldWriter writer
=
new
RealWriter
();
18
if
(
writer
.
WriteIt
() !=
33
)
19
return
1
;
20
return
0
;
21
}
22
}
23