Click or drag to resize

RankedBagTContainsAll Method

Determines whether the bag is a subset of the supplied collection.

Namespace:  Kaos.Collections
Assembly:  KaosCollections (in KaosCollections.dll) Version: 4.2.0.0
Syntax
C#
public bool ContainsAll(
	IEnumerable<T> other
)

Parameters

other
Type: System.Collections.GenericIEnumerableT
The collection to compare to this bag.

Return Value

Type: Boolean
true if the bag is a subset of other; otherwise false.
Exceptions
ExceptionCondition
ArgumentNullExceptionWhen other is null.
Remarks
This is a O(logm operation where m is the size of other.
See Also