RankedBagTAdd Method (T, Int32) |
Namespace: Kaos.Collections
public bool Add( T item, int count )
Exception | Condition |
---|---|
ArgumentException | When count is less than zero. |
If the supplied item already occurs in the bag then the new item is added sequentially following the old items.
This is a O(m log n) operation where m is count and n is Count.