コード例 #1
0
        public static EmptyEnumerable <TItemOut> EmptySelectMany_Impl <TItem, TItemOut>(ref EmptyOrderedEnumerable <TItem> source, Delegate selector)
        {
            if (source.IsDefaultValue())
            {
                throw CommonImplementation.Uninitialized(nameof(source));
            }
            if (selector == null)
            {
                throw CommonImplementation.ArgumentNull(nameof(selector));
            }

            return(EmptyCache <TItemOut> .Empty);
        }
コード例 #2
0
        internal static EmptyEnumerable <TOutItem> EmptyZipBridge_Impl <TItem, TOutItem, TSecondItemOut, TBridgeEnumerable>(ref EmptyOrderedEnumerable <TItem> first, TBridgeEnumerable second, Delegate resultSelector)
            where TBridgeEnumerable : class, IEnumerable <TSecondItemOut>
        {
            if (first.IsDefaultValue())
            {
                throw CommonImplementation.Uninitialized(nameof(first));
            }
            if (second == null)
            {
                throw CommonImplementation.Uninitialized(nameof(second));
            }
            if (resultSelector == null)
            {
                throw CommonImplementation.ArgumentNull(nameof(resultSelector));
            }

            return(EmptyCache <TOutItem> .Empty);
        }
コード例 #3
0
        internal static EmptyEnumerable <TOutItem> EmptyZip_Impl <TItem, TOutItem, TSecondItemOut, TSecondEnumerable, TSecondEnumerator>(ref EmptyOrderedEnumerable <TItem> first, ref TSecondEnumerable second, Delegate resultSelector)
            where TSecondEnumerable : struct, IStructEnumerable <TSecondItemOut, TSecondEnumerator>
            where TSecondEnumerator : struct, IStructEnumerator <TSecondItemOut>
        {
            if (first.IsDefaultValue())
            {
                throw CommonImplementation.Uninitialized(nameof(first));
            }
            if (second.IsDefaultValue())
            {
                throw CommonImplementation.Uninitialized(nameof(second));
            }
            if (resultSelector == null)
            {
                throw CommonImplementation.ArgumentNull(nameof(resultSelector));
            }

            return(EmptyCache <TOutItem> .Empty);
        }