Computes the union of this set with another set. The union of two sets
is all items that appear in either or both of the sets. A new set is
created with the union of the sets and is returned. This set and the other set
are unchanged.
Namespace: X3Platform.CollectionsAssembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntaxpublic Set<T> Union(
Set<T> otherSet
)
public:
Set<T>^ Union(
Set<T>^ otherSet
)
Parameters
- otherSet
- Type: X3Platform.CollectionsSetT
Set to union with.
Return Value
Type:
SetTThe union of the two sets.
Exceptions
RemarksIf equal items appear in both sets, the union will include an arbitrary choice of one of the
two equal items.
The union of two sets is computed in time O(M + N), where M is the size of the
one set, and N is the size of the other set.
See Also