这里面
using System;
using System.Collections.Generic;using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Medians_and_Order_Statistics
{
internal interface IArraySortHelper<TKey>
{
// Methods
int BinarySearch(TKey[] keys, int index, int length, TKey value, IComparer<TKey> comparer);
void Sort(TKey[] keys, int index, int length, IComparer<TKey> comparer);
}
static class Method<T> where T : IComparable<T>
{
public static T GetMax(T[] array) //where T : IComparable<T>
{
if (array==null)
{
throw new ArgumentNullException("array为空!");