blob: f8d91a9c8ac213654d3c418c1fa6e9ab4d560e13 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
using System.Linq;
using System;
class C
{
static object Method <T>(object[] objects)
{
return objects.Select(obj => new Func<T, object>(x => obj));
}
public static void Main ()
{
Method<string> (new[] { "a", "b", "c" });
}
}
|