Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

Set.ExclusiveOr(ISet, ISet) Method

Performs an "exclusive-or" of the two sets, keeping only those elements that are in one of the sets, but not in both.

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

Parameters

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

Return Value

A set containing the result of setOne ^ anotherSet. a null reference (Nothing in Visual Basic) if both sets are a null reference (Nothing in Visual Basic).

Remarks

The original sets are not modified during this operation. The result set is a clone of one of the sets ( setOne if it is not a null reference (Nothing in Visual Basic)) containing the elements from the exclusive-or operation.

See Also

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