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

AdvisableCollection<T>.InsertItems Method

Inserts elements into the underlying collection at the specified index.

Namespace:  PostSharp.Patterns.Collections
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 5.0.48.0 (5.0.48.0)
Syntax
C#
protected virtual void InsertItems(
	int index,
	T[] collection
)

Parameters

index
Type: System.Int32
The zero-based index at which collection should be inserted.
collection
Type: T[]
The list of objects to insert. The values in the list can be null for reference types.
Remarks

Note Note
This method does not cause the advices to be executed. It should be invoked only from inside the scope of the ExecuteWithAdvices<TResult, TAction>(ObjectAccessLevel, TAction) method.

See Also