SortedList<TKey,TValue>.RemoveAt(Int32) Método
Definição
Remove o elemento no índice especificado do SortedList<TKey,TValue>.Removes the element at the specified index of the SortedList<TKey,TValue>.
public:
void RemoveAt(int index);
public void RemoveAt (int index);
member this.RemoveAt : int -> unit
Public Sub RemoveAt (index As Integer)
Parâmetros
- index
- Int32
O índice de base zero do elemento a ser removido.The zero-based index of the element to remove.
Exceções
index é menor que zero.index is less than zero.
- ou --or-
index é igual a ou maior que Count.index is equal to or greater than Count.
Comentários
Esse método executa uma pesquisa binária; no entanto, os elementos são movidos para cima para preencher o ponto de abertura, portanto, esse método é uma operação O ( n ), em que n é Count .This method performs a binary search; however, the elements are moved up to fill in the open spot, so this method is an O(n) operation, where n is Count.