PostSharpAPI ReferencePost­Sharp.​Patterns.​CollectionsAdvisable­Collection<T>Add­Range
Open sandboxFocus

AdvisableCollection<T>.AddRange Method

AddRange(IEnumerable<T>)

Adds the elements of the specified collection to the end of the AdvisableCollection<T>.

Declaration
public void AddRange(IEnumerable<T> collection)
Parameters
Type Name Description
IEnumerable<T> collection

The collection whose elements should be added to the end of the AdvisableCollection<T>. The collection itself cannot be null, but it can contain elements that are null, if type T is a reference type.

Exceptions
Type Condition
ArgumentNullException

collection is null.