Method AddRange
AddRange<T>(ICollection<T>, params IEnumerable<T>?)
Adds a range of values to a collection
public static void AddRange<T>(this ICollection<T> self, params IEnumerable<T>? range)
Parameters
self
ICollection<T>Collection to Add values to
range
IEnumerable<T>values to add
Type Parameters
T
Type of elements in the collection