ImmutableArray<T>.IImmutableList<T>.Insert(Int32, T) Metodo

Definizione

Restituisce una nuova matrice con il valore specificato inserito nella posizione specificata.

 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

Parametri

index
Int32

Indice in base 0 nella matrice in cui deve essere aggiunto il nuovo elemento.

element
T

Elemento da inserire all'inizio della matrice.

Valori restituiti

Nuova matrice con il valore specificato inserito.

Implementazioni

Commenti

Questo membro è un'implementazione esplicita del membro dell'interfaccia. Può essere usato solo quando viene eseguito il cast dell'istanza a un'interfaccia ImmutableArray<T>IImmutableList<T> .

Si applica a