Click or drag to resize
BagTNumberOfCopies Method
Returns the number of copies of item in the bag.

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 approximately constant time, no matter how many items are stored in the bag.
See Also