The Set type exposes the following members.
Operators
Name | Description | |
---|---|---|
![]() ![]() | BitwiseAnd |
Performs an "intersection" of the two sets, where only the elements
that are present in both sets remain. That is, the element is included only if it exists in
both a and b. Neither input object is modified by the operation.
The result object is a Clone() of one of the input objects (a if it is not nullNothingnullptra null reference (Nothing in Visual Basic)) containing the
elements from the intersect operation.
|
![]() ![]() | BitwiseOr |
Performs a "union" of two sets, where all the elements
in both are present. That is, the element is included if it is in either a or b.
The return value is a clone of one of the sets (a if it is not nullNothingnullptra null reference (Nothing in Visual Basic)) with elements of the other set
added in. Neither of the input sets is modified by the operation.
|
![]() ![]() | ExclusiveOr |
Performs an "exclusive-or" of the two sets, keeping only the elements that
are in one of the sets, but not in both. The original sets are not modified
during this operation. The result set is a clone of one of the sets
(a if it is not nullNothingnullptra null reference (Nothing in Visual Basic)) containing
the elements from the exclusive-or operation.
|
![]() ![]() | Subtraction |
Performs a "minus" of set b from set a. This returns a set of all
the elements in set a, removing the elements that are also in set b.
The original sets are not modified during this operation. The result set is a Clone()
of set a containing the elements from the operation.
|