projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2007-10-17 Jonathan Pobst <monkey@jpobst.com>
[mono.git]
/
mcs
/
tests
/
gtest-331.cs
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
}