ImmutableArray<T>.IImmutableList<T>.Insert(Int32, T) Método

Definición

Devuelve una nueva matriz con el valor especificado insertado en la posición especificada.

 virtual System::Collections::Immutable::IImmutableList<T> ^ System.Collections.Immutable.IImmutableList<T>.Insert(int index, T element) = System::Collections::Immutable::IImmutableList<T>::Insert;
System.Collections.Immutable.IImmutableList<T> IImmutableList<T>.Insert (int index, T element);
abstract member System.Collections.Immutable.IImmutableList<T>.Insert : int * 'T -> System.Collections.Immutable.IImmutableList<'T>
override this.System.Collections.Immutable.IImmutableList<T>.Insert : int * 'T -> System.Collections.Immutable.IImmutableList<'T>
Function Insert (index As Integer, element As T) As IImmutableList(Of T) Implements IImmutableList(Of T).Insert

Parámetros

index
Int32

Índice de base cero en la matriz en la que se debe agregar el nuevo elemento.

element
T

Elemento que se va a insertar al principio de la matriz.

Devoluciones

IImmutableList<T>

Nueva matriz con el valor especificado insertado.

Implementaciones

Comentarios

Este miembro es una implementación explícita de un miembro de interfaz. Solo se puede utilizar cuando la instancia de ImmutableArray<T> se convierte en una interfaz IImmutableList<T>.

Se aplica a