Collection(Of T) Constructor (IList(Of T))
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Initializes a new instance of the Collection(Of T) class as a wrapper for the specified list.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- list
- Type: System.Collections.Generic.IList(Of T)
The list that is wrapped by the new collection.
| Exception | Condition |
|---|---|
| ArgumentNullException | list is Nothing. |
The elements of the list are not copied. The list is wrapped by the collection, so that subsequent changes to the elements of the list are visible through the Collection(Of T).
This constructor is an O(1) operation.
Show: