GetInstructions() public static méthode

public static GetInstructions ( MethodBase methodBase ) : IEnumerable
methodBase System.Reflection.MethodBase
Résultat IEnumerable
Exemple #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");
            }
        }
Exemple #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");
            }
        }