'Declaration<ExtensionAttribute()> Public Shared Sub AddRange(Of T)( _ ByVal collection As ICollection(Of T), _ ByVal source As IEnumerable(Of T) _ )
'UsageDim collection As ICollection(Of T) Dim source As IEnumerable(Of T) ICollectionExtension.AddRange(Of T)(collection, source)
[Extension()] public static void AddRange<T>( ICollection<T> collection, IEnumerable<T> source )
[Extension()] public: static void AddRangegeneric<typename T> ( ICollection<T^>^ collection, IEnumerable<T^>^ source )
Parameters
- collection
- The collection that is the target of the operation.
The value of this parameter cannot be
null(Nothingin Visual Basic).The individual elements of the parameter value can be
null(Nothingin Visual Basic). - source
- The sequence whose elements should be added to the end of the ICollection.
The value of this parameter cannot be
null(Nothingin Visual Basic).
Type Parameters
- T
- The type of the elements.