When I type a LINQ query, intellisense in Visual Studio 2010 shows that the where clause expects < condition > . As in
From anItem in listOfItems where ... Intellisense shows it expects a < condition >
What does this < condition > refer to? Is it a type? A predicate? A boolean expression? For instance, if you type…
listOfItems.RemoveAll(
…intellisense shows that it is expecting a predicate. What is the analog for a < condition > in linq? (I get how to use a where condition, I want to know what it means). In the long run, I want to start writing complex where clauses and want to understand what LINQ is actually doing/expecting so I can understand what is going on.
I’ve googled around a little but nothing I find on msdn seems to fit:
-
http://msdn.microsoft.com/en-us/library/ms606907.aspx (seems wrong)
-
http://msdn.microsoft.com/en-us/library/7szfhaft.aspx (seems wrong)
It pretty much just asks for a Boolean expression that can be evaluated for every
anItemin your query expression.The first paragraph of where clause (C# Reference) sums it up nicely:
And this is what Where Clause (Visual Basic) says: