IntersectWith Method

ISet<T>.IntersectWith Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Modifies the current set so that it contains only elements that are also in a specified collection.

Namespace:  System.Collections.Generic
Assembly:  System (in System.dll)

void IntersectWith(
	IEnumerable<T> other
)

Parameters

other
Type: System.Collections.Generic.IEnumerable<T>
The collection to compare to the current set.

ExceptionCondition
ArgumentNullException

other is null.

This method ignores any duplicate elements in other.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft