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
Assembly: Iesi.Collections (in Iesi.Collections.dll) Version: 1.0.1.0 (3.2.0.4000)

Syntax

C#
public override sealed ISet Intersect(
	ISet a
)
Visual Basic
Public Overrides NotOverridable Function Intersect ( _
	a As ISet _
) As ISet
Visual C++
public:
virtual ISet^ Intersect(
	ISet^ a
) override sealed

Parameters

a
Type: Iesi.Collections..::..ISet
A set of elements.

Return Value

The intersection of this set with a.

Implements

ISet..::..Intersect(ISet)

See Also