CircularListTAddRange Method

Adds a collection to the end of the CircularListT.

Definition

Namespace: KGySoft.Collections
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0
C#
public void AddRange(
	IEnumerable<T> collection
)

Parameters

collection  IEnumerableT
The collection to add to the CircularListT.

Implements

ISupportsRangeCollectionTAddRange(IEnumerableT)

Remarks

If the length of the CircularListT is n and the length of the collection to insert is m, then this method has O(m) cost.

If capacity increase is needed (considering actual list size) the cost is O(Max(n, m)).

Exceptions

ArgumentNullExceptioncollection must not be .

See Also