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

Definicja

Wstawia określony element w określonym indeksie na liście niezmiennej.

 virtual System::Collections::Immutable::IImmutableList<T> ^ System.Collections.Immutable.IImmutableList<T>.Insert(int index, T item) = System::Collections::Immutable::IImmutableList<T>::Insert;
System.Collections.Immutable.IImmutableList<T> IImmutableList<T>.Insert (int index, T item);
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, item As T) As IImmutableList(Of T) Implements IImmutableList(Of T).Insert

Parametry

index
Int32

Indeks, w którym ma być wstawiona wartość.

item
T

Element do wstawienia.

Zwraca

Nowa niezmienna lista zawierająca określony element.

Implementuje

Uwagi

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

Dotyczy