equals
Collapse the table of content
Expand the table of content
This documentation is archived and is not being maintained.

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.

Show:
© 2016 Microsoft