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

Definicja

Zwraca nową tablicę z określoną wartością wstawioną na określonej pozycji.

 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

Parametry

index
Int32

Indeks oparty na 0 do tablicy, w której należy dodać nowy element.

element
T

Element do wstawienia na początku tablicy.

Zwraca

IImmutableList<T>

Nowa tablica z określoną wartością wstawioną.

Implementuje

Uwagi

Ten element jest jawną implementacją członków. Można go używać tylko wtedy, gdy ImmutableArray<T> wystąpienie jest rzutowanie do interfejsu IImmutableList<T> .

Dotyczy