PostSharpAPI ReferencePost­Sharp.​Patterns.​Collections.​AdvicesICollection­Dynamic­Advice<T>Insert­Item
Open sandboxFocus

ICollectionDynamicAdvice<T>.InsertItem Method

InsertItem(Int32, T, AdviceEnumerator<ICollectionDynamicAdvice<T>>)

Inserts an item into the advised collection.

Declaration
void InsertItem(int index, T item, AdviceEnumerator<ICollectionDynamicAdvice<T>> nextAdvices)
Parameters
Type Name Description
System.Int32 index
T item
AdviceEnumerator<ICollectionDynamicAdvice<T>> nextAdvices