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

제거할 요소의 인덱스(0부터 시작)입니다.

예외

index가 0보다 작은 경우

또는

indexCount보다 크거나 같은 경우

설명

요소가 열린 지점을 채우기 위해 위로 이동되므로 이 메서드는 O(n) 연산입니다. 여기서 n 는 입니다 Count.

적용 대상

추가 정보