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

Method SetItem

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
Int32 index

The zero-based index of the element to replace.

TItem item

The new value for the element at the specified index. The value can be null for reference types.

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