public SimpleBaseClassDslCompiler(ISimpleScriptStorage storage, Type actualBaseType) : this(storage) { if (!typeof(T).IsAssignableFrom(actualBaseType)) { throw new Exception("actualBaseType does not inherit from T"); } _actualBaseType = actualBaseType; }
/// <summary> /// /// </summary> /// <param name="storage"></param> public SimpleBaseClassDslCompiler(ISimpleScriptStorage storage) { _storage = storage; _storage.DetectModification(urls => this.ReportScriptsModified(urls)); Namespaces = new List <string>(new string[] { "System", "System.Text" }); WhitespaceAgnostic = false; DSLMethodName = "Prepare"; }