PostSharpAPI ReferencePost­Sharp.​Patterns.​CollectionsAdvisable­Keyed­Collection<TKey, TItem>Set­Item
Open sandboxFocus

AdvisableKeyedCollection<TKey, TItem>.SetItem Method

SetItem(Int32, TItem)

Replaces the element at the specified index of the underlying collection.

Declaration
protected override void SetItem(int index, TItem item)
Parameters
Type Name Description
System.Int32 index

The zero-based index of the element to replace.

TItem item
Overrides
PostSharp.Patterns.Collections.AdvisableCollection<TItem>.SetItem(System.Int32, TItem)
Remarks

note

This method does not cause the advices to be executed. It should be invoked only from inside the scope of the ExecuteWithAdvices method.