// Public Methods (1) 

        /// <summary>
        /// Sets a simple predicate with a variable number of parameters.
        /// </summary>
        /// <typeparam name="TExecutor"></typeparam>
        /// <param name="executor">The script executor.</param>
        /// <param name="predicateName">The name of the function in the script.</param>
        /// <param name="predicate">The predicate delegate to set.</param>
        /// <returns>The object in <paramref name="executor" />.</returns>
        /// <exception cref="ArgumentNullException">
        /// <paramref name="executor" /> is <see langword="null" />.
        /// </exception>
        public static TExecutor SetSimplePredicate <TExecutor>(this TExecutor executor, IEnumerable <char> predicateName, ScriptExecutorBase.SimplePredicate predicate)
            where TExecutor : IScriptExecutor
        {
            ScriptHelper.SetSimplePredicate(executor, predicateName, predicate);
            return(executor);
        }
Exemplo n.º 2
0