AddRange Method
Definition
- Namespace
- Cuemon.Collections.Generic
- Assemblies
- Cuemon.Core.dll
AddRange<T>(IDecorator<ICollection<T>>, params T[])
Adds the elements of the specified source to the enclosed ICollection<T> of the decorator.
public static void AddRange<T>(this IDecorator<ICollection<T>> decorator, params T[] source)
Parameters
decoratorIDecorator<ICollection<T>>The decorator that wraps the ICollection<T> to extend.
sourceT[]The sequence of elements that should be added to the enclosed ICollection<T> of the
decorator.
Type Parameters
TThe type of elements in the ICollection<T>.
Exceptions
- ArgumentNullException
decoratorcannot be null.
AddRange<T>(IDecorator<ICollection<T>>, IEnumerable<T>)
Adds the elements of the specified source to the enclosed ICollection<T> of the decorator.
public static void AddRange<T>(this IDecorator<ICollection<T>> decorator, IEnumerable<T> source)
Parameters
decoratorIDecorator<ICollection<T>>The decorator that wraps the ICollection<T> to extend.
sourceIEnumerable<T>The sequence of elements that should be added to the enclosed ICollection<T> of the
decorator.
Type Parameters
TThe type of elements in the ICollection<T>.
Exceptions
- ArgumentNullException
decoratorcannot be null.