ArrayList.Adapter(IList) 메서드

정의

특정 ArrayListIList 대한 래퍼를 만듭니다.

public:
 static System::Collections::ArrayList ^ Adapter(System::Collections::IList ^ list);
public static System.Collections.ArrayList Adapter(System.Collections.IList list);
static member Adapter : System.Collections.IList -> System.Collections.ArrayList
Public Shared Function Adapter (list As IList) As ArrayList

매개 변수

list
IList

래핑할 대상입니다 IList .

반품

ArrayList 대한 래퍼입니다 IList.

예외

listnull입니다.

설명

Adapter의 내용을 복사하지 않습니다.IList 대신, 래퍼 주위에IList만 만듭니다ArrayList. 따라서 변경 내용 IList 도 영향을 미칩니다ArrayList.

클래스는 ArrayList 제네릭 BinarySearchReverseSort 메서드를 제공합니다. 이 래퍼는 이러한 메서드 IList를 사용하는 방법이 될 수 있지만 래퍼를 통해 이러한 제네릭 작업을 수행하는 것이 직접 적용되는 작업보다 효율성이 IList떨어질 수 있습니다.

이 메서드는 작업입니다 O(1) .

적용 대상

추가 정보