Creates a ArrayList that is a wrapper for the specified IList.
- list
- The IList to wrap.
The ArrayList wrapper for list.
Type Reason ArgumentNullException list is null.
This method returns a ArrayList that contains a reference to the IListlist . Any modifications to the elements in either the returned list or list are reflected in the other.
Note: The ArrayList class provides generic ArrayList.Reverse, ArrayList.BinarySearch(int, int, object, IComparer) and ArrayList.Sort methods. This wrapper provides a means to use those methods on IListlist without implementing the methods for the list. Performing these operations through the wrapper might be less efficient than operations applied directly to the list.
Namespace: System.Collections
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0