Exemplo n.º 1
0
 public void LoadLibrary(string code)
 {
     try
     {
         parser.ParseScriptText(code, null, null, null, IntPtr.Zero, 0, ScriptTextFlags.IsVisible);
     }
     catch
     {
         ThrowAndResetIfScriptException();
         throw;
     }
 }
Exemplo n.º 2
0
        public void LoadLibrary(string code)
        {
            try
            {
                parser.ParseScriptText(code, null, null, null, IntPtr.Zero, 0, ScriptTextFlags.IsVisible);
            }
            catch
            {
                ThrowAndResetIfScriptException();
                throw;
            }

            ComRelease(ref dispatch);
            engine.GetScriptDispatch(null, out dispatch);
            dispatchType = dispatch.GetType();
        }