public class BubbleSorter
{
public static void Sort(object[] sortArray, CompareOperation gtMethod)
{
for (int i = 0; i < ; i++)
{
for (int j = 0; j < ; j++)
{
if (gtMethod(sortArray[j], sortArray[i]))
{
object tmp = sortArray[i];
sortArray[i] = sortArray[j];
sortArray[j] = tmp;
}
}
}
}
}
public class Employee
{
private string name;
private decimal salary;
public Employee(string name, decimal salary)
{
= name;
= salary;
}
public override string ToString()
{
return ((20) + "{0:C}", salary);
}
public static bool RSalaryIsGreater(object lObj, object rObj)
{
Employee lEmployee = lObj as Employee;
Employee rEmployee = rObj as Employee;
return > ;
}
}