Constructor ReadOnlyList
ReadOnlyList(List<T>)
Constructs a new instance of this class that is a read-only wrapper around the specified list.
Declaration
public ReadOnlyList(List<T> list)
Parameters
Type | Name | Description |
---|---|---|
List<T> | list | The list to wrap. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | Thrown if |