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); }