Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

Set.Intersect(ISet, ISet) Method

Performs an "intersection" of the two sets, where only the elements that are present in both sets remain.

[Visual Basic]
Public Overloads Shared Sub Intersect( _
   ByVal setOne As ISet, _
   ByVal anotherSet As ISet _
public static ISet Intersect(
   ISet setOne,
   ISet anotherSet


A set of elements.
A set of elements.

Return Value

The intersection of the two input sets; a null reference (Nothing in Visual Basic) if both sets are a null reference (Nothing in Visual Basic).


That is, the element is included only if it exists in both setOne and anotherSet. Neither input object is modified by the operation. The result object is a clone of one of the input objects (setOne if it is not a null reference (Nothing in Visual Basic)) containing the elements from the intersect operation.

See Also

Set Class | Spring.Collections Namespace | Set.Intersect Overload List