Click or drag to resize
OrderedBagTIsSubsetOf Method
Determines if this bag is a subset of another bag. Neither bag is modified. This bag is a subset of otherBag if every element in this bag is also in otherBag, at least the same number of times.

Namespace: X3Platform.Collections
Assembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntax
public bool IsSubsetOf(
	OrderedBag<T> otherBag
)

Parameters

otherBag
Type: X3Platform.CollectionsOrderedBagT
OrderedBag to compare to.

Return Value

Type: Boolean
True if this is a subset of otherBag.
Exceptions
ExceptionCondition
InvalidOperationExceptionThis bag and otherBag don't use the same method for comparing items.
ArgumentNullExceptionotherBag is null.
Remarks
IsSubsetOf is computed in time O(N log M), where M is the size of the otherBag, and N is the size of the this bag.
See Also