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

Definice

Vrátí novou matici se zadanou hodnotou vloženou na zadanou pozici.

 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

Index založený na 0 do pole, do kterého má být nová položka přidána.

element
T

Položka, která se má vložit na začátek pole.

Návraty

Nové pole se zadanou hodnotou vloženou.

Implementuje

Poznámky

Tento člen je explicitní implementace členu rozhraní. Lze jej použít pouze v ImmutableArray<T> případě, že je instance přetypovaná na IImmutableList<T> rozhraní.

Platí pro