Esempio n. 1
0
        public BaseScript(string scriptName, IScript parentScript)
        {
            if (String.IsNullOrEmpty(scriptName))
            {
                throw new ArgumentException("The script name must be provided.", "scriptName");
            }

            Constructor = new ScriptConstructor(this);

            Construct(scriptName, parentScript);
        }
Esempio n. 2
0
        protected BaseScript()
        {
            // The parameterless constructor shouldn't call the Construct function. It needs to be called explicitly if using this constructor.

            Constructor = new ScriptConstructor(this);
        }