PostSharp6.2/API Reference/Post­Sharp.​Patterns.​Collections Namespace/Advisable­Keyed­Collection(TKey, TItem) Class/Advisable­Keyed­Collection(TKey, TItem) Methods/Advisable­Keyed­Collection(TKey, TItem).​Move­Item Method

AdvisableKeyedCollection<TKey, TItem>.MoveItem Method

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

Namespace:  PostSharp.Patterns.Collections
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.2.13.0 (6.2.13.0)
Syntax
C#
protected override void MoveItem(
	TItem item,
	int oldIndex,
	int newIndex
)

Parameters

item
Type: TItem
The element to be moved.
oldIndex
Type: System.Int32
The old zero-based index of item in the collection.
newIndex
Type: System.Int32
The new zero-based index of item in the collection.
Remarks

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

See Also