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: 6.10.14.0 (6.10.14.0)
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.
Exception | Condition |
---|---|
ArgumentNullException | collection is null. |