2 using System
.Collections
.Generic
;
4 delegate TD Func
<TD
>();
5 delegate TR Func
<TA
,TR
>(TA arg
);
9 static IEnumerable
<T
> Test
<T
> (T t
)
14 static IEnumerable
<T
> Test
<T
> (Func
<T
> f
)
19 static IEnumerable
<T
> Test2
<T
> (Func
<T
, T
> f
)
24 public static void Main ()
26 IEnumerable
<int> ie
= Test (1);
27 IEnumerable
<string> se
;
28 se
= Test (() => "a");
29 se
= Test (delegate () { return "a"; }
);
30 se
= Test2 ((string s
) => "s");