ArrayList.SwapAt Method

Swaps two items in the array.

void SwapAt(int index1, int index2)

Parameters

int index1

First index.

int index2

Second index.

Errors

Invalid index.