Click or drag to resize
OrderedBagTNumberOfCopies Method
Returns the number of copies of item in the bag. More precisely, returns the number of items in the bag that compare equal to item.

Namespace: X3Platform.Collections
Assembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntax
public int NumberOfCopies(
	T item
)

Parameters

item
Type: T
The item to search for in the bag.

Return Value

Type: Int32
The number of items in the bag that compare equal to item.
Remarks
NumberOfCopies() takes time O(log N + M), where N is the total number of items in the bag, and M is the number of copies of item in the bag.
See Also