BagTNumberOfCopies Method |
Returns the number of copies of item in the bag.
Namespace: X3Platform.CollectionsAssembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntaxpublic int NumberOfCopies(
T item
)
public:
int NumberOfCopies(
T item
)
Parameters
- item
- Type: T
The item to search for in the bag.
Return Value
Type:
Int32The number of items in the bag that compare equal to
item.
RemarksNumberOfCopies() takes approximately constant time, no matter how many items
are stored in the bag.
See Also