SortedList<TKey,TValue>.RemoveAt(Int32) Metoda

Definicja

Usuwa element w określonym indeksie elementu SortedList<TKey,TValue>.

public:
 void RemoveAt(int index);
public void RemoveAt (int index);
member this.RemoveAt : int -> unit
Public Sub RemoveAt (index As Integer)

Parametry

index
Int32

Indeks zerowy elementu do usunięcia.

Wyjątki

Parametr index ma wartość niższą niż zero.

-lub-

index jest równa lub większa niż Count.

Uwagi

Elementy są przenoszone w górę, aby wypełnić otwarte miejsce, więc ta metoda jest operacją O(n), gdzie n to Count.

Dotyczy

Zobacz też