Returns a fixed-size IList that represents the specified Array.
[Visual Basic] Public Shared Function AsList( _ ByVal array As Array _ ) As IList [C#] public static IList AsList( Array array ); [C++] public: static IList* AsList( Array* array ); [JScript] public static function AsList( array : Array ) : IList;
A fixed-size IList that represents the specified Array.
In a fixed-sized list, individual elements can be modified but not added or removed.
The AsList method is the only way to create an IList from an Array.
Casting an array of value type elements into an array of Object elements is not possible in the runtime. Therefore, a value type array must be converted to an object array using the Copy method.