CollectionExtensions.

AddRange<T>(ICollection<T>, IEnumerable<T>) Method

Summary

Adds a range of values to a collection.
Assembly
Wyam.Common.dll
Namespace
Wyam.Common.Util
Containing Type
CollectionExtensions

Syntax

public static void AddRange<T>(this ICollection<T> collection, IEnumerable<T> items)

Type Parameters

Name Description
T The type of the collection items.

Parameters

Name Type Description
collection ICollection<T> The collection to add values to.
items IEnumerable<T> The items to add.

Return Value

Type Description
void
GitHub