blob: f4e18fea2781f9202f901910e3f5d38de01b4d7a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
using System;
using System.Linq;
namespace Test
{
class S<T>
{
public S ()
{
}
public string Where (Func<C, string> cexpr)
{
return String.Empty;
}
}
class C
{
}
static class Extension
{
public static string Is (this C c)
{
return null;
}
}
class Program
{
public static void Main ()
{
var value = new S<int> ();
var e = from item in value
where item.Is ()
select item;
var foo = value.Where (p => p.Is ());
}
}
}
|