Exemple #1
0
        public static List <ILInstruction> GetInstructions(MethodBase method)
        {
            var insts = new MethodBodyReader(method, null);

            insts.SetPropertyOrField("locals", null);
            insts.ReadInstructions();
            return((List <ILInstruction>)insts.GetPropertyOrField("ilInstructions"));
        }