System.Collections.ArrayList.ArrayListAdapter.Swap C# (CSharp) Method

Swap() private static method

Swaps two items in a list at the specified indexes.
private static Swap ( IList list, int x, int y ) : void
list IList
x int
y int
return void
			private static void Swap(IList list, int x, int y) 
			{
				object tmp;
				
				tmp = list[x];
				list[x] = list[y];
				list[y] = tmp;
			}