PostSharp6.0/API Reference/Post­Sharp.​Patterns.​Collections Namespace/Advisable­Hash­Set(T) Class/Advisable­Hash­Set(T) Methods/Advisable­Hash­Set(T).​Intersect­With Method

AdvisableHashSet<T>.IntersectWith Method

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

Namespace:  PostSharp.Patterns.Collections
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.1.6.0 (6.1.6.0)
Syntax
C#
public void IntersectWith(
	IEnumerable<T> other
)

Parameters

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

Implements

ISet<T>.IntersectWith(IEnumerable<T>)
Exceptions
ExceptionCondition
ArgumentNullExceptionother is null.
See Also