public void getIL_BT_Click(object sender, EventArgs e) { if (domainTraverser.currentMethod == null) { return; } editor_RTB.Clear(); formatOutput formatOutput = new formatOutput(); foreach (ILInstruction instruciton in ILInstructionLoader.GetInstructions(domainTraverser.currentMethod)) { editor_RTB.AppendText(instruciton.Offset.ToString("X4") + " " + instruciton.OpCode + " " + formatOutput.setUpDataFormat(instruciton) + "\n"); } }
private void getILCustomCToolStripMenuItem_Click(object sender, EventArgs e) { var selectedMethod = dynamicMethods_LB.SelectedItem as MethodInfo; if (selectedMethod == null) { return; } editor_RTB.Clear(); formatOutput formatOutput = new formatOutput(); foreach (ILInstruction instruciton in ILInstructionLoader.GetInstructions(selectedMethod)) { editor_RTB.AppendText(instruciton.Offset.ToString("X4") + " " + instruciton.OpCode + " " + formatOutput.setUpDataFormat(instruciton) + "\n"); } }