OrderedBagTGetEqualItems Method |
Enumerates all of the items in this bag that are equal to item, according to the
comparison mechanism that was used when the bag was created. The bag
is not changed.
If the bag does contain an item equal to item, then the enumeration contains
no items.
Namespace: X3Platform.CollectionsAssembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntaxpublic IEnumerable<T> GetEqualItems(
T item
)
public:
IEnumerable<T>^ GetEqualItems(
T item
)
Parameters
- item
- Type: T
The item to search for.
Return Value
Type:
IEnumerableTAn IEnumerable<T> that enumerates all the items in the bag equal to
item.
RemarksEnumeration the items in the bag equal to item takes time O(log N + M), where N
is the total number of items in the bag, and M is the number of items equal to item.
See Also