What does intellisense mean when it shows that it expects <condition> in the where clause of the linq request?

When I print a LINQ query, intellisense in Visual Studio 2010 shows that the where clause is expecting <state>. As in

From anItem in listOfItems where ... Intellisense shows it expects a < condition >

What does it do & lt; condition> refer to? Is that a type? Predicate? Boolean expression? For example, if you type ...

listOfItems.RemoveAll(

... intellisense shows that it expects a predicate. What is the analogue for <condition> in linq? (I understand how to use where the condition is, I want to know what this means). Ultimately, I want to start writing a complex where the clauses are, and I want to understand what LINQ actually does / expects so that I can understand what is happening.

I searched a bit in googled, but nothing I found in msdn seems to fit:

+1
source share
2 answers

To a large extent, a logical expression is simply queried, which can be evaluated for each anItemin the query expression.

The first paragraph is where the sentence (C # Reference) sums up:

where , , . () ( ) , . where, .

Where Clause (Visual Basic) :

. , , . Boolean Boolean. True, ; .

+2

"" ", , , ". , SQL WHERE, , . .

0

Source: https://habr.com/ru/post/1713208/


All Articles