예제 #1
0
        public static HeuristicSearchOrderBy <TFactor, TStep> ThenByDescending <TFactor, TKey, TStep>(this HeuristicSearchOrderBy <TFactor, TStep> source, Func <TFactor, TKey> keySelector, IComparer <TKey> comparer)
        {
            if (source == null)
            {
                throw new ArgumentNullException(nameof(source));
            }

            return(source.CreateOrderedEnumerable(keySelector, comparer, true));
        }
예제 #2
0
        public static HeuristicSearchOrderBy <TFactor, TStep> ThenBy <TFactor, TStep>(this HeuristicSearchOrderBy <TFactor, TStep> source, Func <TFactor, ulong> keySelector)
        {
            if (source == null)
            {
                throw new ArgumentNullException(nameof(source));
            }

            return(source.CreateOrderedEnumerable(keySelector, false));
        }
예제 #3
0
 public static HeuristicSearchOrderBy <TFactor, TStep> ThenByDescending <TFactor, TKey, TStep>(this HeuristicSearchOrderBy <TFactor, TStep> source, Func <TFactor, TKey> keySelector)
 {
     return(ThenByDescending(source, keySelector, null));
 }
예제 #4
0
 public static HeuristicSearchOrderBy <TResult, TStep> ThenBy <TResult, TKey, TStep>(this HeuristicSearchOrderBy <TResult, TStep> source, Func <TResult, TKey> keySelector)
 {
     return(ThenBy(source, keySelector, null));
 }