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
2007-05-25 Jonathan Chambers <joncham@gmail.com>
[mcs.git]
/
tests
/
gtest-113.cs
blob
93215c288dd5fc55ae3562a5241f028b00a2f3a2
1
using
System
;
2
3
public delegate
V Mapper
<
T
,
V
> (
T item
);
4
5
public class
List
<
T
>
6
{
7
public void
Map
<
V
> (
Mapper
<
T
,
V
>
mapper
)
8
{ }
9
}
10
11
class
X
12
{
13
static void
Main
()
14
{
15
List
<
int
>
list
=
new
List
<
int
> ();
16
list
.
Map
(
new
Mapper
<
int
,
double
> (
delegate
(
int
i
)
{ return i/10.0; }
));
17
}
18
}
19