Returns a read-only wrapper for the specified array.
Namespace: SystemAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public static ReadOnlyCollection<T> AsReadOnly<T>(
T[] array
)
Parameters
- array
- Type: T
The one-dimensional, zero-based array to wrap in a read-only ReadOnlyCollectionT wrapper.
Type Parameters
- T
- The type of the elements of the array.
Return Value
Type:
ReadOnlyCollectionTA read-only
ReadOnlyCollectionT wrapper for the specified array.
Exceptions See Also