public static IList <Instruction> GetInstructions(this MethodBase self) { return(MethodBodyReader.GetInstructions(self).AsReadOnly()); }
public static List<Instruction> GetInstructions(MethodBase method) { var reader = new MethodBodyReader(method); reader.ReadInstructions(); return reader.instructions; }