Пример #1
0
        private void InitialiseLocals(string[] parameters, object[] arguments)
        {
            var vars = new Dictionary <string, object>();

            for (var i = 0; i < parameters.Length; i++)
            {
                vars.Add(parameters[i], arguments[i]);
            }

            ScopeManager.EnterScope();

            foreach (var variable in vars)
            {
                ScopeManager.Add(variable.Key, variable.Value);
            }
        }