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
bring Mono Security to monotouch
[mcs.git]
/
tests
/
gtest-051.cs
blob
5fc94f7c6e895fe9c375b0d5cfb4e1d07a116445
1
using
System
;
2
3
public class
Foo
<
T
>
4
where T
:
A
5
{
6
public void
Test
(
T t
)
7
{
8
Console
.
WriteLine
(
t
);
9
Console
.
WriteLine
(
t
.
GetType
());
10
t
.
Hello
();
11
}
12
}
13
14
public class
A
15
{
16
public void
Hello
()
17
{
18
Console
.
WriteLine
(
"Hello World"
);
19
}
20
}
21
22
public class
B
:
A
23
{
24
}
25
26
class
X
27
{
28
static void
Main
()
29
{
30
Foo
<
B
>
foo
=
new
Foo
<
B
> ();
31
foo
.
Test
(
new
B
());
32
}
33
}