示例#1
0
        public static List <Instruction> GetInstructions(MethodBase method)
        {
            MethodBodyReader reader;

            try
            {
                reader = new MethodBodyReader(method);
            }
            catch (ArgumentException)
            {
                return(new List <Instruction>());
            }

            reader.ReadInstructions();
            return(reader.instructions);
        }