ArrayList.Adapter(IList) 메서드

정의

특정 IList에 대해 ArrayList 래퍼를 만듭니다.

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입니다.

반환

IList 주변의 ArrayList 래퍼입니다.

예외

list이(가) null인 경우

설명

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

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

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

적용 대상

추가 정보