PostSharp//API Reference/Post­Sharp.​Patterns.​Collections/Advisable­Collection<T>/Move­Item
Open sandboxFocus

Method MoveItem

MoveItem(T, Int32, Int32)

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

Declaration
protected virtual void MoveItem(T item, int oldIndex, int newIndex)
Parameters
Type Name Description
T item

The element to be moved.

Int32 oldIndex

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

Int32 newIndex

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