 | CollectionUtilsSwapT Method |
Swaps the elements with the specified indices in the passed list.
Namespace: Slash.Collections.UtilsAssembly: Slash.Collections (in Slash.Collections.dll) Version: 1.0.6018.40177
Syntaxpublic static void Swap<T>(
IList<T> list,
int first,
int second
)
Public Shared Sub Swap(Of T) (
list As IList(Of T),
first As Integer,
second As Integer
)
public:
generic<typename T>
static void Swap(
IList<T>^ list,
int first,
int second
)
static member Swap :
list : IList<'T> *
first : int *
second : int -> unit
Parameters
- list
- Type: System.Collections.GenericIListT
List to swap the items of. - first
- Type: SystemInt32
Index of the first item to swap. - second
- Type: SystemInt32
Index of the second item to swap.
Type Parameters
- T
- Type of the list to swap the items of.
See Also