System.Collections.Generic.SortedList<TKey,TValue>.RemoveAt Method

Removes the element at the specified index of the SortedList`2.

Syntax

public void RemoveAt (int index)

Parameters

index
The zero-based index of the element to remove.

Remarks

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 SortedList`2.Count.

Requirements

Namespace: System.Collections.Generic
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0