Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

Set.Minus(ISet, ISet) Method

Performs a "minus" of set anotherSet from set setOne.

[Visual Basic]
Public Overloads Shared Sub Minus( _
   ByVal setOne As ISet, _
   ByVal anotherSet As ISet _
)
[C#]
public static ISet Minus(
   ISet setOne,
   ISet anotherSet
);

Parameters

setOne
A set of elements.
anotherSet
A set of elements.

Return Value

A set containing setOne - anotherSet elements. a null reference (Nothing in Visual Basic) if setOne is a null reference (Nothing in Visual Basic).

Remarks

This returns a set of all the elements in set setOne, removing the elements that are also in set anotherSet. The original sets are not modified during this operation. The result set is a clone of set setOne containing the elements from the operation.

See Also

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