コード例 #1
0
        /// <summary>
        /// Create new DlrScope for executing base stuff
        /// </summary>
        /// <param name="host">Instance of the hosting component</param>
        public DlrScriptScope(IDlrHost host)
        {
            this.host = host;
            cachedExpressions = new Dictionary<string, CompiledCode>();
            executedScripts = new List<string>();

            scriptScope = host.ScriptEngine.CreateScope();
        }
コード例 #2
0
        /// <summary>
        /// Create new DlrScope for executing base stuff
        /// </summary>
        /// <param name="host">Instance of the hosting component</param>
        public DlrScriptScope(IDlrHost host)
        {
            this.host         = host;
            cachedExpressions = new Dictionary <string, CompiledCode>();
            executedScripts   = new List <string>();

            scriptScope = host.ScriptEngine.CreateScope();
        }