Skip to content

Commit

Permalink
Remove an incorrect negation (#42873)
Browse files Browse the repository at this point in the history
Fixes #42870
  • Loading branch information
BillWagner authored Oct 8, 2024
1 parent 8dd1c79 commit b1881ab
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ The following example depicts the behavior of <xref:System.Linq.Enumerable.Inter

:::code language="csharp" source="./snippets/standard-query-operators/SetOperations.cs" id="Intersect":::

The <xref:System.Linq.Enumerable.IntersectBy%2A> method is an alternative approach to `Intersect` that takes two sequences of possibly heterogenous types and a `keySelector`. The `keySelector` is used as the comparative discriminator of the second collection's type. Consider the following student and teacher arrays. The query matches items in each sequence by name to find those students who aren't also teachers:
The <xref:System.Linq.Enumerable.IntersectBy%2A> method is an alternative approach to `Intersect` that takes two sequences of possibly heterogenous types and a `keySelector`. The `keySelector` is used as the comparative discriminator of the second collection's type. Consider the following student and teacher arrays. The query matches items in each sequence by name to find those students who are also teachers:

:::code language="csharp" source="./snippets/standard-query-operators/SetOperations.cs" id="IntersectBy":::

Expand Down

0 comments on commit b1881ab

Please sign in to comment.