BigListTInsertRange Method (Int32, IEnumerableT) |
Inserts a collection of items at the given index in the BigList. All items at indexes
equal to or greater than index increase their indices
by the number of items inserted.
Namespace: X3Platform.CollectionsAssembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntaxpublic void InsertRange(
int index,
IEnumerable<T> collection
)
public:
void InsertRange(
int index,
IEnumerable<T>^ collection
)
Parameters
- index
- Type: SystemInt32
The index to insert the collection at. After the
insertion, the first item of the inserted collection is located at this index. The
first item has index 0. - collection
- Type: System.Collections.GenericIEnumerableT
The collection of items to insert at the given index.
Exceptions
RemarksThe amount of time to insert an arbitrary collection in the BigList is O(M + log N),
where M is the number of items inserted, and N is the number of items in the list.
See Also