Wintellect.PowerCollections Namespace
Algorithms Class
GhostDoc Pro Sample Help File

OrderedBag<(Of <(<'T>)>)>..::..AddMany Method

Adds all the items in collection to the bag.

Namespace:  Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax


public void AddMany(
	IEnumerable<T> collection
)
Public Sub AddMany ( _
	collection As IEnumerable(Of T) _
)
public:
void AddMany(
	IEnumerable<T>^ collection
)

Parameters

collection
Type: IEnumerable<(Of <(<'T>)>)>
A collection of items to add to the bag.

Exceptions


ExceptionCondition
ArgumentNullExceptioncollection is null.

Remarks


Adding the collection takes time O(M log N), where N is the number of items in the bag, and M is the number of items in collection.