Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6989549
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T19:13:37+00:00 2026-05-27T19:13:37+00:00

When I type a LINQ query, intellisense in Visual Studio 2010 shows that the

  • 0

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)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T19:13:37+00:00Added an answer on May 27, 2026 at 7:13 pm

    It pretty much just asks for a Boolean expression that can be evaluated for every anItem in your query expression.

    The first paragraph of where clause (C# Reference) sums it up nicely:

    The where clause is used in a query expression to specify which elements from the data source will be returned in the query expression. It applies a Boolean condition (predicate) to each source element (referenced by the range variable) and returns those for which the specified condition is true. A single query expression may contain multiple where clauses and a single clause may contain multiple predicate subexpressions.

    And this is what Where Clause (Visual Basic) says:

    condition

    Required. An expression that determines whether the values for the current item in the collection are included in the output collection. The expression must evaluate to a Boolean value or the equivalent of a Boolean value. If the condition evaluates to True, the element is included in the query result; otherwise, the element is excluded from the query result.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can I write a LINQ query that returns an hierachical anonymous type from
When I type 'from' (in a LINQ query) after importing System.Linq namespace , it
If I have a linq query that creates the anonymous type below: select new
I have the following LINQ query that returns two objects from my database. These
How to write a LINQ query that would return row of type Value with
I am getting the result from LINQ query as var of type IEnumerable<T> I
I have a Linq query that returns an anonymous type, which I then use
I have a LINQ Query that creates a new type that contains a days
How would I create the equivalent Linq To Objects query? SELECT MIN(CASE WHEN p.type
Whats the best design pattern to use for LINQ and type tables that exist

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.