Computes the difference of this set with another set. The difference of these two sets
is all items that appear in this set, but not in otherSet. A new set is
created with the difference 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> Difference(
Set<T> otherSet
)
public:
Set<T>^ Difference(
Set<T>^ otherSet
)
Parameters
- otherSet
- Type: X3Platform.CollectionsSetT
Set to difference with.
Return Value
Type:
SetTThe difference of the two sets.
Exceptions
RemarksThe difference of two sets is computed in time O(N), where N is the size of the smaller set.
See Also