Table of Contents

AddRange Method

Definition

Namespace
Cuemon.Extensions.Collections.Generic
Assemblies
Cuemon.Extensions.Collections.Generic.dll
Source
src/Cuemon.Extensions.Collections.Generic/CollectionExtensions.cs

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

collection ICollection<T>

The ICollection<T> to extend.

source T[]

The sequence of elements that should be added to collection.

Type Parameters

T

The 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

collection ICollection<T>

The ICollection<T> to extend.

source IEnumerable<T>

The sequence of elements that should be added to collection.

Type Parameters

T

The type of elements in the ICollection<T>.