ImmutableArray<T>.InsertRange Método

Definición

Sobrecargas

InsertRange(Int32, IEnumerable<T>)

Inserta los valores especificados en el índice especificado.

InsertRange(Int32, ImmutableArray<T>)

Inserta los valores especificados en el índice especificado.

InsertRange(Int32, ReadOnlySpan<T>)

Inserta los valores especificados en el índice especificado.

InsertRange(Int32, T[])

Inserta los valores especificados en el índice especificado.

InsertRange(Int32, IEnumerable<T>)

Inserta los valores especificados en el índice especificado.

public:
 System::Collections::Immutable::ImmutableArray<T> InsertRange(int index, System::Collections::Generic::IEnumerable<T> ^ items);
public System.Collections.Immutable.ImmutableArray<T> InsertRange (int index, System.Collections.Generic.IEnumerable<T> items);
member this.InsertRange : int * seq<'T> -> System.Collections.Immutable.ImmutableArray<'T>
Public Function InsertRange (index As Integer, items As IEnumerable(Of T)) As ImmutableArray(Of T)

Parámetros

index
Int32

Índice en el que se va a insertar el valor.

items
IEnumerable<T>

Elementos que van a insertarse.

Devoluciones

ImmutableArray<T>

Nueva matriz inmutable con los elementos insertados en el índice especificado.

Se aplica a

InsertRange(Int32, ImmutableArray<T>)

Inserta los valores especificados en el índice especificado.

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

Parámetros

index
Int32

Índice en el que se va a insertar el valor.

items
ImmutableArray<T>

Elementos que van a insertarse.

Devoluciones

ImmutableArray<T>

Nueva matriz inmutable con los elementos insertados en el índice especificado.

Se aplica a

InsertRange(Int32, ReadOnlySpan<T>)

Inserta los valores especificados en el índice especificado.

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

Parámetros

index
Int32

Índice en el que se va a insertar el valor.

items
ReadOnlySpan<T>

Elementos que van a insertarse.

Devoluciones

ImmutableArray<T>

Nueva colección inmutable.

Se aplica a

InsertRange(Int32, T[])

Inserta los valores especificados en el índice especificado.

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

Parámetros

index
Int32

Índice en el que se va a insertar el valor.

items
T[]

Elementos que van a insertarse.

Devoluciones

ImmutableArray<T>

Nueva colección inmutable.

Se aplica a