9 public TestA (string value)
14 public string Select
<U
> (Func
<TestA
, U
> f
)
22 static public TestA
Where(this TestA a
, Func
<TestA
,bool> predicate
)
25 return new TestA ("where used");
31 public class CustomQueryExpressionPattern
35 var v
= new TestA ("Oh yes");
36 string foo
= from a
in v
select a
;
40 v
= new TestA ("where?");
42 // It also tests that select is not called in this case
43 v
= from a
in v where a
.value != "wrong" select a
;
45 if (v
.value != "where used")
48 Console
.WriteLine (v
.value.ToString ());