linux-packaging-mono/mcs/tests/gtest-lambda-03.cs
Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

20 lines
295 B
C#

using System;
public delegate TResult Func<TArg0, TResult> (TArg0 arg0);
class Demo
{
static Y F<X, Y> (int a, X value, Func<X, Y> f1)
{
return f1 (value);
}
public static int Main ()
{
object o = F (1, "1:15:30", s => TimeSpan.Parse (s));
Console.WriteLine (o);
return 0;
}
}