Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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

 

Removes the element at the specified index of the SortedList<TKey, TValue>.

Namespace:   System.Collections.Generic
Assembly:  System (in System.dll)

public:
void RemoveAt(
	int index
)

Parameters

index
Type: System::Int32

The zero-based index of the element to remove.

Exception Condition
ArgumentOutOfRangeException

index is less than zero.

-or-

index is equal to or greater than 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.

Universal Windows Platform
Available since 10
.NET Framework
Available since 2.0
Return to top
Show:
© 2017 Microsoft