GetInstructions() public static method

public static GetInstructions ( MethodBase methodBase ) : IEnumerable
methodBase System.Reflection.MethodBase
return IEnumerable
示例#1
0
        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");
            }
        }
示例#2
0
        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");
            }
        }