Пример #1
0
        /// <summary>
        /// A fast way to sort a big file. For more options you need to
        /// instantiate the BigFileSorter class instead of using static methods
        /// </summary>
        public static void SortBigFile <T>(Encoding encoding, string source, string destination)
            where T : class, IComparable <T>
        {
            var sorter = new BigFileSorter <T>(encoding);

            sorter.Sort(source, destination);
        }
Пример #2
0
        /// <summary>
        /// A fast way to sort a big file. For more options you need to
        /// instantiate the BigFileSorter class instead of using static methods
        /// </summary>
        public static void SimpleSort(Encoding encoding, string source, string destination)
        {
            var sorter = new BigFileSorter <T>(encoding);

            sorter.Sort(source, destination);
        }