[Visual Basic] Public Shared Function Adapter( _ ByVal list As IList _ ) As ArrayList [C#] public static ArrayList Adapter( IList list ); [C++] public: static ArrayList* Adapter( IList* list ); [JScript] public static function Adapter( list : IList ) : ArrayList;
|ArgumentNullException||list is a null reference (Nothing in Visual Basic).|
The ArrayList class provides generic Reverse, BinarySearch and Sort methods. This wrapper can be a means to use those methods on IList; however, performing these generic operations through the wrapper might be less efficient than operations applied directly on the IList.
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Common Language Infrastructure (CLI) Standard