 | ListExtensionMethodsMove Method |
Moves an item inside the list from an old to a new index.
Namespace: Slash.Collections.ExtensionsAssembly: Slash.Collections (in Slash.Collections.dll) Version: 1.0.6018.40177
Syntaxpublic static void Move(
this IList list,
int oldIndex,
int newIndex
)
<ExtensionAttribute>
Public Shared Sub Move (
list As IList,
oldIndex As Integer,
newIndex As Integer
)
public:
[ExtensionAttribute]
static void Move(
IList^ list,
int oldIndex,
int newIndex
)
[<ExtensionAttribute>]
static member Move :
list : IList *
oldIndex : int *
newIndex : int -> unit
Parameters
- list
- Type: System.CollectionsIList
List to work on. - oldIndex
- Type: SystemInt32
Old index of the item. - newIndex
- Type: SystemInt32
New index of the item.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IList. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also