Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

equals (C# Reference)

Updated: July 2008

The equals contextual keyword is used in a join clause in a query expression to compare the elements of two sequences. For more information, see join clause (C# Reference).

The following example shows the use of the equals keyword in a join clause.

var innerJoinQuery =
    from category in categories
    join prod in products on category.ID equals prod.CategoryID
    select new { ProductName = prod.Name, Category = category.Name }; 

Date

History

Reason

July 2008

Added topic.

Information enhancement.

Community Additions

ADD
Show:
© 2015 Microsoft