ArrayListStatic: 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
The adapter gives all IList objects the ability to be used anywhere an ArrayList instance would be used instead.
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)