Exemplo n.º 1
0
 public override Assembly Compile() {
   DeregisterScriptEvents();
   compiledScript = null;
   var assembly = base.Compile();
   var types = assembly.GetTypes();
   compiledScript = (CSharpScriptBase)Activator.CreateInstance(types.Single(x => typeof(CSharpScriptBase).IsAssignableFrom(x)));
   RegisterScriptEvents();
   return assembly;
 }
        public override Assembly Compile()
        {
            DeregisterScriptEvents();
            compiledScript = null;
            var assembly = base.Compile();
            var types    = assembly.GetTypes();

            compiledScript = (CSharpScriptBase)Activator.CreateInstance(types.Single(x => typeof(CSharpScriptBase).IsAssignableFrom(x)));
            RegisterScriptEvents();
            return(assembly);
        }
 public EventWriter(CSharpScriptBase script)
 {
     this.script = script;
 }
Exemplo n.º 4
0
 public EventWriter(CSharpScriptBase script) {
   this.script = script;
 }