PostSharp6.2/API Reference/Post­Sharp.​Patterns.​Collections.​Advices Namespace/ICollection­Dynamic­Advice(T) Interface/ICollection­Dynamic­Advice(T) Methods/ICollection­Dynamic­Advice(T).​Move­Item Method

ICollectionDynamicAdvice<T>.MoveItem Method

Moves an item of the advised collection from an old index to a new index.

Namespace:  PostSharp.Patterns.Collections.Advices
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.2.13.0 (6.2.13.0)
Syntax
C#
void MoveItem(
	T item,
	int oldIndex,
	int newIndex,
	AdviceEnumerator<ICollectionDynamicAdvice<T>> nextAdvices
)

Parameters

item
Type: T
oldIndex
Type: System.Int32
newIndex
Type: System.Int32
nextAdvices
Type: PostSharp.Patterns.DynamicAdvising.AdviceEnumerator<ICollectionDynamicAdvice<T>>
See Also