PostSharp 6.4 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Collections.​Advices Namespace / Collection­Dynamic­Advice(T) Class / Collection­Dynamic­Advice(T) Methods / Collection­Dynamic­Advice(T).​Insert­Item Method

CollectionDynamicAdvice<T>.InsertItem Method

Inserts an item into the advised collection.

Namespace:  PostSharp.Patterns.Collections.Advices
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.4.11.0 (6.4.11.0)
Syntax
C#
public virtual void InsertItem(
	int index,
	T item,
	AdviceEnumerator<ICollectionDynamicAdvice<T>> nextAdvices
)

Parameters

index
Type: System.Int32
item
Type: T
nextAdvices
Type: PostSharp.Patterns.DynamicAdvising.AdviceEnumerator<ICollectionDynamicAdvice<T>>

Implements

ICollectionDynamicAdvice<T>.InsertItem(Int32, T, AdviceEnumerator<ICollectionDynamicAdvice<T>>)
See Also