Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

Set.Union(ISet, ISet) Method

Performs a "union" of two sets, where all the elements in both are present.

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


A set of elements.
A set of elements.

Return Value

A set containing the union of the 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 if it is in either setOne or anotherSet. The return value is a clone of one of the sets (setOne if it is not a null reference (Nothing in Visual Basic)) with elements of the other set added in. Neither of the input sets is modified by the operation.

See Also

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