コード例 #1
0
        public static IFunctionRegistration AddWithoutSideEffects <TResult>([NotNull] this IConnectQlFunctions functions, string key, Expression <Func <TResult> > function)
        {
            var descriptor = new FunctionDescriptor(key, false, ConnectQlFunctionsExtensions.ReplaceEnumerables(functions, key, function));

            return(new FunctionRegistration(descriptor, functions.AddFunction(key, descriptor)));
        }
コード例 #2
0
        public static IFunctionRegistration6 AddWithSideEffects <TArgument1, TArgument2, TArgument3, TArgument4, TArgument5, TArgument6, TResult>([NotNull] this IConnectQlFunctions functions, string key, Expression <Func <TArgument1, TArgument2, TArgument3, TArgument4, TArgument5, TArgument6, TResult> > function)
        {
            var descriptor = new FunctionDescriptor(key, true, ConnectQlFunctionsExtensions.ReplaceEnumerables(functions, key, function));

            return(new FunctionRegistration(descriptor, functions.AddFunction(key, descriptor)));
        }