ArrayListStatic: Adapter

Adapter

Creates an object that allows any IList object to be treated as an ArrayList instance.



 Public Function Adapter(
	  ByVal List As IList ) As ArrayList

Parameters

List
[ByVal] IList. The list to be wrapped as an ArrayList instance.

Return Values

ArrayList -  An IList object that can be used like an ArrayList.

Remarks

The adapter gives all IList objects the ability to be used anywhere an ArrayList instance would be used instead.

Examples

The following example creates a wrapper around an IList object to be treated as an ArrayList. Call using the following syntax:

 Set List = ArrayList.Adapter(OriginalList)
 

See Also

Project CorLib Overview

Class ArrayListStatic Overview