public static decimal?Min(this OneItemSpecificOrderedEnumerable <decimal?> source)
        {
            if (source.IsDefaultValue())
            {
                throw CommonImplementation.Uninitialized(nameof(source));
            }

            return(source.Item);
        }
        public bool SequenceEqual(OneItemSpecificOrderedEnumerable <TItem> second)
        {
            if (IsDefaultValue())
            {
                throw CommonImplementation.Uninitialized("first");
            }
            if (second.IsDefaultValue())
            {
                throw CommonImplementation.Uninitialized(nameof(second));
            }

            return(EqualityComparer <TItem> .Default.Equals(default(TItem), second.Item));
        }
 public static System.Collections.Generic.LinkedList <TItem> LinkedList <TItem>(OneItemSpecificOrderedEnumerable <TItem> second)
 => LinkedListImpl <TItem, OneItemSpecificOrderedEnumerable <TItem>, OneItemSpecificOrderedEnumerator <TItem> >(ref second);
Esempio n. 4
0
 public static System.Collections.Generic.Stack <TItem> Stack <TItem>(OneItemSpecificOrderedEnumerable <TItem> second)
 => StackImpl <TItem, OneItemSpecificOrderedEnumerable <TItem>, OneItemSpecificOrderedEnumerator <TItem> >(ref second);