SortedList<TKey,TValue>.RemoveAt(Int32) 方法

定义

移除 SortedList<TKey,TValue> 的指定索引处的元素。

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

参数

index
Int32

要移除的元素的从零开始的索引。

例外

index 小于零。

- 或 -

index 等于或大于 Count

注解

元素向上移动以填充开放点,因此此方法是 O (n) 操作,其中 nCount

适用于

另请参阅