public static QuickSortEventArgs QuickSortAsynch(IList array, int min, int max, IComparer comp) { var args = new QuickSortEventArgs { List = array, Min = min, Max = max, Comparer = comp }; QuickSortAsynch(args); return(args); }
public static IAsyncResult QuickSortAsynch(QuickSortEventArgs arg) { arg.Result = action.BeginInvoke(arg.List, arg.Min, arg.Max, arg.Comparer, callback, arg); return(arg.Result); }