Adds a range of elements to a list of element.

C# | Visual Basic | Visual C++ |
public static void AddRange<TListElement>( this IList<TListElement> list, IEnumerable<TListElement> collection )
<ExtensionAttribute> _ Public Shared Sub AddRange(Of TListElement) ( _ list As IList(Of TListElement), _ collection As IEnumerable(Of TListElement) _ )
[ExtensionAttribute] public: generic<typename TListElement> static void AddRange( IList<TListElement>^ list, IEnumerable<TListElement>^ collection )

- TListElement
- The type of the list element.

- list (IList<(Of <(TListElement>)>))
- The list.
- collection (IEnumerable<(Of <(TListElement>)>))
- The collection.