Пример #1
0
        public Sorter(SorterTheme theme = null, bool reverse = false)
        {
            Theme = theme ?? new SorterTheme();

            IsSorted = (int[] array) =>
            {
                if (reverse)
                {
                    return(_IsSortedReverse(array));
                }
                else
                {
                    return(_IsSorted(array));
                }
            };
        }
Пример #2
0
 public MergeSortReverse(SorterTheme theme = null) : base(theme, true)
 {
 }
Пример #3
0
 public MergeSort(SorterTheme theme = null) : base(theme)
 {
 }
Пример #4
0
 public BubbleSortReverse(SorterTheme theme = null) : base(theme, true)
 {
 }
Пример #5
0
 public QuickSort(SorterTheme theme = null) : base(theme)
 {
 }
Пример #6
0
 public QuickSortReverse(SorterTheme theme = null) : base(theme, true)
 {
 }
Пример #7
0
 public BubbleSort(SorterTheme theme = null) : base(theme)
 {
 }