Пример #1
0
        /// <summary>
        ///     a means to trivially override one or more fns in the Host object.
        /// </summary>
        /// <param name="args"></param>
        /// <returns></returns>
        protected IHostApi Host(params object[] args)
        {
            _lastCall = new BasicHostImpl();
            if (args.Length == 0)
            {
                return(_lastCall);
            }

            return(new object[] {
                args,
                // everything else just pull from the basic impl
                _lastCall
            }.As <IHostApi>());
        }
Пример #2
0
        /// <summary>
        ///     a means to trivially override one or more fns in the Host object.
        /// </summary>
        /// <param name="args"></param>
        /// <returns></returns>
        protected IHostApi Host(params object[] args)
        {
            _lastCall = new BasicHostImpl();
            if (args.Length == 0) {
                return _lastCall;
            }

            return new object[] {
                args,
                // everything else just pull from the basic impl
                _lastCall
            }.As<IHostApi>();
        }