Mono Class Library: System.Array Overview | MembersSystem.Array.AsReadOnly<T> Method |
Returns a read-only System.Collections.Generic.IList<T> wrapper around the specified array. [Edit]
|
- T
- Documentation for this section has not yet been entered. [Edit]
A read-only IList<T> wrapper around the specified array. [Edit]
Type Reason ArgumentNullException array is null. [Edit]
Note: To prevent any modifications to the array, expose the array only through this wrapper.The returned IList<T> has the same enumeration order as the array it wraps.
A collection that is read-only is simply a collection with a wrapper that prevents modifying the underlying array; therefore, if changes are made to the underlying array, the read-only collection reflects those changes.
[Edit]
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0