Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

equals (C# Reference)

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 };
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.