OrderedBagTIsEqualTo Method |
Determines if this bag is equal to another bag. This bag is equal to
otherBag if they contain the same items, each the
same number of times.
Namespace: X3Platform.CollectionsAssembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntaxpublic bool IsEqualTo(
OrderedBag<T> otherBag
)
public:
bool IsEqualTo(
OrderedBag<T>^ otherBag
)
Parameters
- otherBag
- Type: X3Platform.CollectionsOrderedBagT
OrderedBag to compare to
Return Value
Type:
BooleanTrue if this bag is equal to
otherBag, false otherwise.
Exceptions
RemarksIsEqualTo is computed in time O(N), where N is the number of items in
this bag.
See Also