Click or drag to resize
CollectionUtilsSwapT Method
Swaps the elements with the specified indices in the passed list.

Namespace: Slash.Collections.Utils
Assembly: Slash.Collections (in Slash.Collections.dll) Version: 1.0.6018.40177
Syntax
public static void Swap<T>(
	IList<T> list,
	int first,
	int second
)

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