projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* expression.cs (Invocation.IsApplicable): Reorganize slightly to
[mono.git]
/
mcs
/
tests
/
ltest-3.cs
1
// Compiler options: -langversion:linq
2
3
using System;
4
public delegate TResult Func<TArg0, TResult> (TArg0 arg0);
5
class Demo {
6
static Y F<X,Y>(int a, X value, Func<X,Y> f1) {
7
return f1(value);
8
}
9
static int Main ()
10
{ object o = F(1, "1:15:30", s => TimeSpan.Parse(s));
11
Console.WriteLine (o);
12
return 0;}
13
}