ImmutableArray<T>.AddRange Method

Definition

Overloads

AddRange(IEnumerable<T>)

Returns a copy of the original array with the specified elements added to the end of the array.

AddRange(ImmutableArray<T>)

Returns a copy of the original array with the specified elements added to the end of the array.

AddRange(ReadOnlySpan<T>)

Adds the specified values to this list.

AddRange(T[])

Adds the specified values to this list.

AddRange(ImmutableArray<T>, Int32)

Adds the specified items to the end of the array.

AddRange(T[], Int32)

Adds the specified items to the end of the array.

AddRange<TDerived>(ImmutableArray<TDerived>)

Adds the specified items to the end of the array.

AddRange<TDerived>(TDerived[])

Adds the specified items to the end of the array.

AddRange(IEnumerable<T>)

Source:
ImmutableArray_1.cs
Source:
ImmutableArray_1.cs
Source:
ImmutableArray_1.cs
Source:
ImmutableArray_1.cs

Returns a copy of the original array with the specified elements added to the end of the array.

public:
 System::Collections::Immutable::ImmutableArray<T> AddRange(System::Collections::Generic::IEnumerable<T> ^ items);
public System.Collections.Immutable.ImmutableArray<T> AddRange (System.Collections.Generic.IEnumerable<T> items);
member this.AddRange : seq<'T> -> System.Collections.Immutable.ImmutableArray<'T>
Public Function AddRange (items As IEnumerable(Of T)) As ImmutableArray(Of T)

Parameters

items
IEnumerable<T>

The elements to add to the array.

Returns

A new array with the elements added.

Applies to

AddRange(ImmutableArray<T>)

Source:
ImmutableArray_1.cs
Source:
ImmutableArray_1.cs
Source:
ImmutableArray_1.cs
Source:
ImmutableArray_1.cs

Returns a copy of the original array with the specified elements added to the end of the array.

public:
 System::Collections::Immutable::ImmutableArray<T> AddRange(System::Collections::Immutable::ImmutableArray<T> items);
public System.Collections.Immutable.ImmutableArray<T> AddRange (System.Collections.Immutable.ImmutableArray<T> items);
member this.AddRange : System.Collections.Immutable.ImmutableArray<'T> -> System.Collections.Immutable.ImmutableArray<'T>
Public Function AddRange (items As ImmutableArray(Of T)) As ImmutableArray(Of T)

Parameters

items
ImmutableArray<T>

The elements to add to the array.

Returns

A new array with the elements added.

Applies to

AddRange(ReadOnlySpan<T>)

Source:
ImmutableArray_1.cs
Source:
ImmutableArray_1.cs
Source:
ImmutableArray_1.cs
Source:
ImmutableArray_1.cs

Adds the specified values to this list.

public:
 System::Collections::Immutable::ImmutableArray<T> AddRange(ReadOnlySpan<T> items);
public System.Collections.Immutable.ImmutableArray<T> AddRange (ReadOnlySpan<T> items);
public System.Collections.Immutable.ImmutableArray<T> AddRange (scoped ReadOnlySpan<T> items);
member this.AddRange : ReadOnlySpan<'T> -> System.Collections.Immutable.ImmutableArray<'T>
Public Function AddRange (items As ReadOnlySpan(Of T)) As ImmutableArray(Of T)

Parameters

items
ReadOnlySpan<T>

The values to add.

Returns

A new list with the elements added.

Applies to

AddRange(T[])

Source:
ImmutableArray_1.cs
Source:
ImmutableArray_1.cs
Source:
ImmutableArray_1.cs
Source:
ImmutableArray_1.cs

Adds the specified values to this list.

public:
 System::Collections::Immutable::ImmutableArray<T> AddRange(... cli::array <T> ^ items);
public System.Collections.Immutable.ImmutableArray<T> AddRange (params T[] items);
member this.AddRange : 'T[] -> System.Collections.Immutable.ImmutableArray<'T>
Public Function AddRange (ParamArray items As T()) As ImmutableArray(Of T)

Parameters

items
T[]

The values to add.

Returns

A new list with the elements added.

Applies to

AddRange(ImmutableArray<T>, Int32)

Source:
ImmutableArray_1.cs
Source:
ImmutableArray_1.cs
Source:
ImmutableArray_1.cs
Source:
ImmutableArray_1.cs

Adds the specified items to the end of the array.

public:
 System::Collections::Immutable::ImmutableArray<T> AddRange(System::Collections::Immutable::ImmutableArray<T> items, int length);
public System.Collections.Immutable.ImmutableArray<T> AddRange (System.Collections.Immutable.ImmutableArray<T> items, int length);
member this.AddRange : System.Collections.Immutable.ImmutableArray<'T> * int -> System.Collections.Immutable.ImmutableArray<'T>
Public Function AddRange (items As ImmutableArray(Of T), length As Integer) As ImmutableArray(Of T)

Parameters

items
ImmutableArray<T>

The values to add.

length
Int32

The number of elements from the source array to add.

Returns

A new list with the elements added.

Applies to

AddRange(T[], Int32)

Source:
ImmutableArray_1.cs
Source:
ImmutableArray_1.cs
Source:
ImmutableArray_1.cs
Source:
ImmutableArray_1.cs

Adds the specified items to the end of the array.

public:
 System::Collections::Immutable::ImmutableArray<T> AddRange(cli::array <T> ^ items, int length);
public System.Collections.Immutable.ImmutableArray<T> AddRange (T[] items, int length);
member this.AddRange : 'T[] * int -> System.Collections.Immutable.ImmutableArray<'T>
Public Function AddRange (items As T(), length As Integer) As ImmutableArray(Of T)

Parameters

items
T[]

The values to add.

length
Int32

The number of elements from the source array to add.

Returns

A new list with the elements added.

Applies to

AddRange<TDerived>(ImmutableArray<TDerived>)

Source:
ImmutableArray_1.cs
Source:
ImmutableArray_1.cs
Source:
ImmutableArray_1.cs
Source:
ImmutableArray_1.cs

Adds the specified items to the end of the array.

public:
generic <typename TDerived>
 where TDerived : T System::Collections::Immutable::ImmutableArray<T> AddRange(System::Collections::Immutable::ImmutableArray<TDerived> items);
public System.Collections.Immutable.ImmutableArray<T> AddRange<TDerived> (System.Collections.Immutable.ImmutableArray<TDerived> items) where TDerived : T;
member this.AddRange : System.Collections.Immutable.ImmutableArray<#'T> -> System.Collections.Immutable.ImmutableArray<'T>
Public Function AddRange(Of TDerived As T) (items As ImmutableArray(Of TDerived)) As ImmutableArray(Of T)

Type Parameters

TDerived

The type that derives from the type of item already in the array.

Parameters

items
ImmutableArray<TDerived>

The values to add.

Returns

A new list with the elements added.

Applies to

AddRange<TDerived>(TDerived[])

Source:
ImmutableArray_1.cs
Source:
ImmutableArray_1.cs
Source:
ImmutableArray_1.cs
Source:
ImmutableArray_1.cs

Adds the specified items to the end of the array.

public:
generic <typename TDerived>
 where TDerived : T System::Collections::Immutable::ImmutableArray<T> AddRange(cli::array <TDerived> ^ items);
public System.Collections.Immutable.ImmutableArray<T> AddRange<TDerived> (TDerived[] items) where TDerived : T;
member this.AddRange : 'Derived[] -> System.Collections.Immutable.ImmutableArray<'T>
Public Function AddRange(Of TDerived As T) (items As TDerived()) As ImmutableArray(Of T)

Type Parameters

TDerived

The type that derives from the type of item already in the array.

Parameters

items
TDerived[]

The values to add.

Returns

A new list with the elements added.

Applies to