Ejemplo n.º 1
0
        internal ScriptExecutionManager(ScriptDelegate deleg, object[] args)
        {
            Delegate = deleg;

            executions = new Queue <ScriptExecution>();
            var env = new ScriptEnvironment(Delegate, args);

            env.ExecutionManager = this;
            MainExecution        = new ScriptExecution(env);
            executions.Enqueue(MainExecution);
        }
Ejemplo n.º 2
0
        internal ScriptEnvironment(ScriptDelegate sdelegate, object[] args)
            : this(sdelegate)
        {
            this.args = args;

            vars      = new Dictionary <string, object>();
            stack     = new Stack <object>();
            callStack = new Stack <object>();

#if DEBUG
            execHistory = new List <Instruction>();
#endif
        }
Ejemplo n.º 3
0
 internal ScriptEnvironment(ScriptDelegate sdelegate)
 {
     Delegate = sdelegate;
 }