Table of Contents

Method AddRange

Namespace
Gamelogic.Extensions.Algorithms
Assembly
Gamelogic.Extensions.dll

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

Adds all elements of other to the given collection.

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

Parameters

collection ICollection<T>

The collection to add elements to.

other IEnumerable<T>

The elements to add. If null, nothing is added.

Type Parameters

T

The type of elements in the collection.