OrderedSetTIsDisjointFrom Method |
Determines if this set is disjoint from another set. Two sets are disjoint
if no item from one set is equal to any item in the other set.
Namespace: X3Platform.CollectionsAssembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntaxpublic bool IsDisjointFrom(
OrderedSet<T> otherSet
)
public:
bool IsDisjointFrom(
OrderedSet<T>^ otherSet
)
Parameters
- otherSet
- Type: X3Platform.CollectionsOrderedSetT
Set to check disjointness with.
Return Value
Type:
BooleanTrue if the two sets are disjoint, false otherwise.
Exceptions
RemarksThe answer is computed in time O(N log M), where M is the size of the
larger set, and N is the size of the smaller set.
See Also