Example #1
0
		public void OnMenu3(object sender, EventArgs e)
		{
			Type t = (Type)_data;

			string modName = t.Assembly.GetModules()[0].FullyQualifiedName;

			Process p = new Process();
            p.StartInfo.FileName = Application.StartupPath + "/ildasm.exe";
			p.StartInfo.Arguments = "/text /nobar \"" + modName + "\" /item=" + t.FullName;
			p.StartInfo.UseShellExecute = false;
			p.StartInfo.RedirectStandardOutput = true;
			p.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
			p.Start();

			string s  =p.StandardOutput.ReadToEnd();

			p.WaitForExit();
			p.Close();

			InfoDialog dlg = new InfoDialog("Disassembly", "Type " + t.FullName + " in " + modName, s);
			dlg.ShowDialog();
		}
Example #2
0
		public void OnMenu(object sender, EventArgs e)
		{
			Module m = (Module)_data;

			Process p = new Process();
			p.StartInfo.FileName = "ildasm.exe";
			p.StartInfo.Arguments = "/text /nobar " + m.FullyQualifiedName;
			p.StartInfo.UseShellExecute = false;
			p.StartInfo.RedirectStandardOutput = true;
			p.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
			p.Start();

			string s  =p.StandardOutput.ReadToEnd();

			p.WaitForExit();
			p.Close();

			InfoDialog dlg = new InfoDialog("Disassembly", "Module " + m.FullyQualifiedName, s);
			dlg.ShowDialog();
		}
Example #3
0
		public void OnMenu(object sender, EventArgs e)
		{
			MethodBase m = (MethodBase)_data;

			string modName = m.DeclaringType.Assembly.GetModules()[0].FullyQualifiedName;
			string methName = m.DeclaringType.FullName + "::" + m.Name;

			Process p = new Process();
			p.StartInfo.FileName = "ildasm.exe";
			p.StartInfo.Arguments = "/text /nobar \"" + modName + "\" /item=" + methName;
			p.StartInfo.UseShellExecute = false;
			p.StartInfo.RedirectStandardOutput = true;
			p.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
			p.Start();

			string s  =p.StandardOutput.ReadToEnd();

			p.WaitForExit();
			p.Close();

			InfoDialog dlg = new InfoDialog("Disassembly", "Method " + methName + " in " + modName, s);
			dlg.ShowDialog();
		}