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); }
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); }