示例#1
0
        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);
        }
示例#2
0
 public static IAsyncResult QuickSortAsynch(QuickSortEventArgs arg)
 {
     arg.Result = action.BeginInvoke(arg.List, arg.Min, arg.Max, arg.Comparer, callback, arg);
     return(arg.Result);
 }