Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Collections Namespace / Advisable­Collection(T) Class / Advisable­Collection(T) Methods / Advisable­Collection(T).​Add­Range Method

AdvisableCollection<T>.AddRange Method

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

Namespace:  PostSharp.Patterns.Collections
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 5.0.43.0 (5.0.43.0)
Syntax
C#
public void AddRange(
	IEnumerable<T> collection
)

Parameters

collection
Type: System.Collections.Generic.IEnumerable<T>
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
ExceptionCondition
ArgumentNullExceptioncollection is null.
See Also