Note
If target is neither a ListT nor an ISupportsRangeCollectionT implementation,
then the elements of collection will be added one by one.
public static void AddRange<T>(
this ICollection<T> target,
IEnumerable<T> collection
)
<ExtensionAttribute>
Public Shared Sub AddRange(Of T) (
target As ICollection(Of T),
collection As IEnumerable(Of T)
)
public:
[ExtensionAttribute]
generic<typename T>
static void AddRange(
ICollection<T>^ target,
IEnumerable<T>^ collection
)
[<ExtensionAttribute>]
static member AddRange :
target : ICollection<'T> *
collection : IEnumerable<'T> -> unit
ArgumentNullException | target or collection is . |