Returns a read-only IList wrapper.
[Visual Basic] Overloads Public Shared Function ReadOnly( _ ByVal list As IList _ ) As IList [C#] public static IList ReadOnly( IList list ); [C++] public: static IList* ReadOnly( IList* list ); [JScript] public static function ReadOnly( list : IList ) : IList;
A read-only IList wrapper around list.
Exception Type | Condition |
---|---|
ArgumentNullException | list is a null reference (in Visual Basic Nothing). |
This wrapper can be used to prevent any modifications to list.
ArrayList Class | ArrayList Members | System.Collections Namespace | ArrayList.ReadOnly Overload List