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

AdvisableKeyedCollection<TKey, TItem>.MoveItem Method

MoveItem(TItem, Int32, Int32)

Moves the element at the specified index to another index in the underlying collection.

Declaration
protected override void MoveItem(TItem item, int oldIndex, int newIndex)
Parameters
Type Name Description
TItem item
Int32 oldIndex

The old zero-based index of item in the collection.

Int32 newIndex

The new zero-based index of item in the collection.

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

Some redundancy is created by requiring both item and oldIndex: this is intentional, for performance reasons.