'Declaration<ObsoleteAttribute("Not obsolete, but be aware that this constructor wraps the specified list, making it subject to subsequent changes through the collection.")> Public Function New( _ ByVal list As IList(Of T) _ )
'UsageDim list As IList(Of T) Dim instance As New Collection2(Of T)(list)
[Obsolete("Not obsolete, but be aware that this constructor wraps the specified list, making it subject to subsequent changes through the collection.")] public Collection2<T>( IList<T> list )
[Obsolete("Not obsolete, but be aware that this constructor wraps the specified list, making it subject to subsequent changes through the collection.")] public: Collection2<T>( IList<T^>^ list )
Parameters
- list
- The list that is wrapped by the new collection.
The value of this parameter cannot be
null(Nothingin Visual Basic).The individual elements of the parameter value can be
null(Nothingin Visual Basic).