예제 #1
0
        public static System.Collections.Generic.List <TItem> List <TItem>(EmptyOrderedEnumerable <TItem> second)
        {
            if (second.IsDefaultValue())
            {
                throw CommonImplementation.Uninitialized(nameof(second));
            }

            return(new System.Collections.Generic.List <TItem>());
        }
예제 #2
0
        public static float Min(this EmptyOrderedEnumerable <float> source)
        {
            if (source.IsDefaultValue())
            {
                throw CommonImplementation.Uninitialized(nameof(source));
            }

            throw CommonImplementation.SequenceEmpty();
        }
예제 #3
0
        public static decimal?Min(this EmptyOrderedEnumerable <decimal?> source)
        {
            if (source.IsDefaultValue())
            {
                throw CommonImplementation.Uninitialized(nameof(source));
            }

            return(null);
        }
        public static decimal Average(this EmptyOrderedEnumerable <decimal> source)
        {
            if (source.IsDefaultValue())
            {
                throw CommonImplementation.Uninitialized(nameof(source));
            }

            throw CommonImplementation.SequenceEmpty();
        }
        public static double?Average(this EmptyOrderedEnumerable <long?> source)
        {
            if (source.IsDefaultValue())
            {
                throw CommonImplementation.Uninitialized(nameof(source));
            }

            return(null);
        }
        public bool SequenceEqual(EmptyOrderedEnumerable <TItem> second, IEqualityComparer <TItem> comparer)
        {
            if (IsDefaultValue())
            {
                throw CommonImplementation.Uninitialized("first");
            }
            if (second.IsDefaultValue())
            {
                throw CommonImplementation.Uninitialized(nameof(second));
            }

            return(false);
        }
        public static IdentityEnumerable <TItem, LinkedList <TItem>, LinkedListBridger <TItem>, LinkedListEnumerator <TItem> > Concat <TItem>(this LinkedList <TItem> first, EmptyOrderedEnumerable <TItem> second)
        {
            var firstBridge = CommonImplementation.Bridge(first, nameof(first));

            if (second.IsDefaultValue())
            {
                throw CommonImplementation.Uninitialized(nameof(second));
            }

            return(firstBridge);
        }
        public static IdentityEnumerable <TItem, Dictionary <TItem, TDictionaryValue> .KeyCollection, DictionaryKeysBridger <TItem, TDictionaryValue>, DictionaryKeysEnumerator <TItem, TDictionaryValue> > Concat <TItem, TDictionaryValue>(this Dictionary <TItem, TDictionaryValue> .KeyCollection first, EmptyOrderedEnumerable <TItem> second)
        {
            var firstBridge = CommonImplementation.Bridge(first, nameof(first));

            if (second.IsDefaultValue())
            {
                throw CommonImplementation.Uninitialized(nameof(second));
            }

            return(firstBridge);
        }