Muokkaa

Jaa


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

Definition

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)

Parameters

index
Int32

The zero-based index of the element to remove.

Exceptions

index is less than zero.

-or-

index is equal to or greater than Count.

Remarks

The elements are moved up to fill in the open spot, so this method is an O(n) operation, where n is Count.

Applies to

See also