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
[corlib] Fix a few NSLogWriter issues. (#13799)
[mono-project.git]
/
mcs
/
tests
/
gtest-051.cs
blob
bd0e7eb2dabd0c73583db6820f794242d1603e46
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
public static void
Main
()
29
{
30
Foo
<
B
>
foo
=
new
Foo
<
B
> ();
31
foo
.
Test
(
new
B
());
32
}
33
}