IList<T>.InsertRange Method

Overloads

InsertRange(Integer, array of T)

Inserts multiple items to the list at the specified index.

InsertRange(Integer, IEnumerable<T>)

Inserts multiple items to the list at the specified index.

InsertRange(Integer, array of T)

Inserts multiple items to the list at the specified index.

Delphi
procedure InsertRange(index: Integer; const values: array of T)

Parameters

index
Integer

The zero-based index at which item should be inserted.

values
array of T

Exceptions

index is not a valid index in the list.

InsertRange(Integer, IEnumerable<T>)

Inserts multiple items to the list at the specified index.

Delphi
procedure InsertRange(index: Integer; const values: IEnumerable<T>)

Parameters

index
Integer

The zero-based index at which item should be inserted.

values
IEnumerable<T>

Exceptions

index is not a valid index in the list.

values is nil .