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

ICollectionDynamicAdvice<T>.SetItem Method

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

Replaces an item in the advised collection.

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