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
In class/Microsoft.Build.Tasks:
[mcs.git]
/
tests
/
gtest-lambda-03.cs
blob
831a4a216be4db462be8fd2cf0f4e83ca3976fe1
1
2
3
using
System
;
4
5
public delegate
TResult Func
<
TArg0
,
TResult
> (
TArg0 arg0
);
6
7
class
Demo
8
{
9
static
Y F
<
X
,
Y
> (
int
a
,
X
value
,
Func
<
X
,
Y
>
f1
)
10
{
11
return
f1
(
value
);
12
}
13
static int
Main
()
14
{
15
object
o
=
F
(
1
,
"1:15:30"
,
s
=>
TimeSpan
.
Parse
(
s
));
16
Console
.
WriteLine
(
o
);
17
return
0
;
18
}
19
}