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
remove NotWorking
[mcs.git]
/
tests
/
gtest-331.cs
blob
a242223743f9e46c1cae92f79fc54364a2a18da8
1
using
System
;
2
3
public class
Foo
<
T
>
4
{
5
public void
Map
<
S
> (
S
value
)
6
{
7
Foo
<
S
>
result
=
new
Foo
<
S
> ();
8
result
.
Test
(
value
);
9
}
10
11
protected virtual void
Test
(
T
value
)
12
{
13
Console
.
WriteLine
(
value
);
14
}
15
16
}
17
18
class
X
19
{
20
static void
Main
()
21
{
22
Foo
<
double
>
a
=
new
Foo
<
double
> ();
23
a
.
Map
<
string
> (
"Hello World"
);
24
}
25
}