Performs an "intersection" of the two sets, where only the elements that are present in both sets remain. That is, the element is included if it exists in both sets. The Intersect() operation does not modify the input sets. It returns a Clone() of this set with the appropriate elements removed.

Namespace: Iesi.Collections.Generic
Assembly: Iesi.Collections (in Iesi.Collections.dll) Version: 1.0.1.0 (3.2.0.4000)

Syntax

C#
public ISet<T> Intersect(
	ISet<T> a
)
Visual Basic
Public Function Intersect ( _
	a As ISet(Of T) _
) As ISet(Of T)
Visual C++
public:
virtual ISet<T>^ Intersect(
	ISet<T>^ a
) sealed

Parameters

a
Type: Iesi.Collections.Generic..::..ISet<(Of <(<'T>)>)>
A set of elements.

Return Value

The intersection of this set with a.

See Also