PostSharpAPI ReferencePost­Sharp.​Patterns.​CollectionsAdvisable­Hash­Set<T>Intersect­With
Open sandboxFocus

AdvisableHashSet<T>.IntersectWith Method

IntersectWith(IEnumerable<T>)

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

Declaration
public void IntersectWith(IEnumerable<T> other)
Parameters
Type Name Description
IEnumerable<T> other

The collection to compare to the current set.

Exceptions
Type Condition
ArgumentNullException

other is null.