Exemple #1
0
        public bool Run()
        {
            Debug.Assert(m_vsae != null);

            try {
                m_vsae.Run();

#if false
                Assembly     mbly    = m_vsae.Assembly;
                object       ob      = mbly.CreateInstance("script.Foo");
                Type[]       atyp    = mbly.GetTypes();
                Type         typMain = atyp[0];
                MemberInfo[] amthi   = typMain.GetMembers();
                foreach (MemberInfo mthi in amthi)
                {
                    MessageBox.Show(mthi.ToString());
                }
                object obT = mbly.CreateInstance(atyp[0].Name);
                MessageBox.Show(obT.ToString());
                obT  = null;
                atyp = null;
                mbly = null;
#endif

//			} catch (VsaException exVsa) {
//				return false;
            } finally {
                m_vsae.Close();
                m_vsae = null;
                OnScriptDone(EventArgs.Empty);
            }
            return(true);
        }