5 static void Foo (Action
<string> a
)
10 static T Foo
<T
> (Func
<string, T
> f
)
12 return f ("function");
17 return Foo (str
=> str
.ToLower ());
20 public static int Main ()
22 var str
= Foo (s
=> s
);
23 Console
.WriteLine (str
);
24 if (str
!= "function")
26 Foo (s
=> Console
.WriteLine (s
));