Wintellect.PowerCollections Namespace
Algorithms Class
GhostDoc Pro Sample Help File

BigList<(Of <(<'T>)>)> Constructor (BigList<(Of <(<'T>)>)>, Int32)

Creates a new BigList that is several copies of list.

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

Syntax


public BigList(
	BigList<T> list,
	int copies
)
Public Sub New ( _
	list As BigList(Of T), _
	copies As Integer _
)
public:
BigList(
	BigList<T>^ list, 
	int^ copies
)

Parameters

list
Type: Wintellect.PowerCollections..::..BigList<(Of <(<'T>)>)>
The BigList to copy.
copies
Type: Int32
Number of copies of the collection to use.

Exceptions


ExceptionCondition
ArgumentNullExceptionlist is null.

Remarks


Creating K copies of a BigList takes time O(log K), and O(log K) additional memory, since the storage for the items of the two lists is shared. However, changing either list will take additional time and memory. Portions of the list are copied when they are changed.