ICollection<T>.AddRange Method

Overloads

AddRange(IEnumerable<T>)

Adds the values in a sequence to the collection.

AddRange(array of T)

Adds the values in an open array to the collection.

AddRange(IEnumerable<T>)

Adds the values in a sequence to the collection.

Delphi
procedure AddRange(const Values: IEnumerable<T>); overload;

Parameters

Values
IEnumerable<T>

The values to add.

Exceptions

Values is nil.

Remarks

Values are added in enumeration order.

AddRange(array of T)

Adds the values in an open array to the collection.

Delphi
procedure AddRange(const Values: array of T); overload;

Parameters

Values
array of T

The values to add.

Remarks

Values are added in array order.