using System; class EquivalencePartitioningDemo{ // Exchange element i and j in table public void SwapElements(T[] table, int i, int j){ ... } // Find the largest element in table in between the indexes from and to. // Return the index of this element. // Precondition: 0 <= from <= to <= table.Length-1 public int FindMaxIndex(T[] table, int from, int to) where T: IComparable { ... } }