Method ContainsCount
ContainsCount(T)
Count the number of items of the collection equal to a particular value. Returns 0 if and only if the value is not in the collection.
Declaration
int ContainsCount(T item)
Parameters
Type | Name | Description |
---|---|---|
T | item | The value to count. |
Returns
Type | Description |
---|---|
System.Int32 | The number of copies found. |