Example #1
0
        public static System.Linq.IOrderedEnumerable <TSource> ThenByDescending <TSource, TKey>(this System.Linq.IOrderedEnumerable <TSource> source, Func <TSource, TKey> keySelector, IComparer <TKey> comparer)
        {
            if (source == null)
            {
                ThrowHelper.ThrowArgumentNullException(ExceptionArgument.source);
            }

            return(source.CreateOrderedEnumerable(keySelector, comparer, true));
        }
Example #2
0
        public static System.Linq.IOrderedEnumerable <TSource> ThenBy <TSource, TKey>(this System.Linq.IOrderedEnumerable <TSource> source, Func <TSource, TKey> keySelector)
        {
            if (source == null)
            {
                ThrowHelper.ThrowArgumentNullException(ExceptionArgument.source);
            }

            return(source.CreateOrderedEnumerable(keySelector, null, false));
        }
Example #3
0
        public static System.Linq.IOrderedEnumerable <TSource> ThenBy <TSource, TKey>(
            this System.Linq.IOrderedEnumerable <TSource> source,
            Func <TSource, TKey> keySelector,
            IComparer <TKey> comparer)
        {
            if (source == null)
            {
                throw new ArgumentNullException(nameof(source));
            }

            if (keySelector == null)
            {
                throw new ArgumentNullException(nameof(keySelector));
            }

            return(source.CreateOrderedEnumerable(keySelector, comparer, false));
        }