Wintellect.PowerCollections Namespace
Algorithms Class
GhostDoc Pro Sample Help File

OrderedBag<(Of <(<'T>)>)>..::..GetEqualItems 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:  Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax


public IEnumerable<T> GetEqualItems(
	T item
)
Public Function GetEqualItems ( _
	item As T _
) As IEnumerable(Of T)
public:
IEnumerable<T>^ GetEqualItems(
	T item
)

Parameters

item
Type: T
The item to search for.

Return Value

An IEnumerable<T> that enumerates all the items in the bag equal to item.

Remarks


Enumeration 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.