AddRange Method
Definition
- Namespace
- Cuemon.Extensions.Collections.Generic
- Assemblies
- Cuemon.Extensions.Collections.Generic.dll
AddRange<T>(ICollection<T>, params T[])
Adds the elements of the specified source to the collection.
public static void AddRange<T>(this ICollection<T> collection, params T[] source)
Parameters
collectionICollection<T>The ICollection<T> to extend.
sourceT[]The sequence of elements that should be added to
collection.
Type Parameters
TThe type of elements in the ICollection<T>.
AddRange<T>(ICollection<T>, IEnumerable<T>)
Adds the elements of the specified source to the collection.
public static void AddRange<T>(this ICollection<T> collection, IEnumerable<T> source)
Parameters
collectionICollection<T>The ICollection<T> to extend.
sourceIEnumerable<T>The sequence of elements that should be added to
collection.
Type Parameters
TThe type of elements in the ICollection<T>.