public void Swap(int i, int p) { int temp = this[i].Index; this[i].SetIndex(this[p].Index); this[p].SetIndex(temp); } /// <summary>