Bag<(Of <(<'T>)>)>..::..AddRepresentative Method
Adds a new item to the bag. Since bags can contain duplicate items, the item
is added even if the bag already contains an item equal to item. In
this case (unlike Add), the new item becomes the representative item.
Namespace:
Wintellect.PowerCollections
Assembly:
PowerCollections (in PowerCollections.dll)
Syntax
public void AddRepresentative( T item )
Public Sub AddRepresentative ( _ item As T _ )
public: void AddRepresentative( T item )
Parameters
- item
- Type: T
The item to add to the bag.