コード例 #1
0
        public Dictionary <string, Dictionary <int, long> > MakeSort()//
        {
            var res = new Dictionary <string, Dictionary <int, long> >();

            foreach (var sort in sorts)
            {
                var dict = new Dictionary <int, long>();
                foreach (var size in sizes)
                {
                    int[] testIntArray = CreateArray(size);
                    var   sorter       = new Sorter(testIntArray, sort);
                    sorter.ArraySort();
                    dict.Add(size, sorter.milliseconds);
                }
                res.Add(sort.Name, dict);
            }
            return(res);
        }