Method IsSubsetOf
- Namespace
- Skyline.DataMiner.Core.DataMinerSystem.Common
- Assembly
- Skyline.DataMiner.Core.DataMinerSystem.Common.dll
IsSubsetOf(IEnumerable<IDmsView>)
Determines whether this set is a subset of the specified collection.
public bool IsSubsetOf(IEnumerable<IDmsView> other)
Parameters
other
IEnumerable<IDmsView>The collection to compare to the current object.
Returns
- bool
true
if this object is a subset of other; otherwise,false
.
Remarks
An empty set is a subset of any other collection, including an empty set. Therefore, this method returns true if the collection represented by the current object is empty, even if the other parameter is an empty set.
This method always returns false if Count is greater than the number of items in other
.
If the collection represented by other is a collection with the same equality comparer as the current object, this method is an O(n) operation.
Otherwise, this method is an O(n + m) operation, where n is Count and m is the number of items in other
.
Exceptions
- ArgumentNullException
other
is null.