Exactly how LINQ's "where" method is defined? I'm guessing implementation is something like this:
public static IEnumerable<T> Where ( this partialParent, Func<bla,bla> myDelegate )
Now if I invoke Where method like this:
from c in context.Con
where ( c.Col1 == c.Col2 )
select c
I'm guessing "c.Col1 == c.Col2"
is passed down and some foreach
loop does the checking. But what is going on when I invoke where like this:
where ( c.Col1 == c.Col2 || c.Col3 == c.Col4 )
Does the two "checks" are passed down as a whole expression? Maybe I'm missing something very simple.