6 public delegate TR Func
<TR
, TA
> (TA t
);
8 public static TR Test
<TR
, TA
> (Func
<TR
, TA
> f
)
13 public static TR Test
<TR
, TA
, TB
> (Func
<TR
, TA
> f
, Func
<TR
, TB
> f2
)
18 public static void Test2
<T
> ()
20 T r
= Test (delegate (T i
) { return i; }
);
23 public static void Main()
25 int r
= Test (delegate (int i
) { return i < 1 ? 'a' : i; }
);
26 string s
= Test (delegate (int i
) { return "a"; }
, delegate (int i
) { return "b"; }
);