Export (0) Print
Expand All

ISet<T>.IntersectWith Method

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.

Silverlight

Supported in: 5, 4

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2014 Microsoft