IImmutableList<T>.Insert(Int32, T) Método
Definição
Insere o elemento especificado no índice especificado na lista imutável.Inserts the specified element at the specified index in the immutable list.
public:
System::Collections::Immutable::IImmutableList<T> ^ Insert(int index, T element);
public System.Collections.Immutable.IImmutableList<T> Insert (int index, T element);
abstract member Insert : int * 'T -> System.Collections.Immutable.IImmutableList<'T>
Public Function Insert (index As Integer, element As T) As IImmutableList(Of T)
Parâmetros
- index
- Int32
O índice baseado em zero no qual inserir o valor.The zero-based index at which to insert the value.
- element
- T
O objeto a ser inserido.The object to insert.
Retornos
Uma nova lista imutável que inclui o elemento especificado.A new immutable list that includes the specified element.