Bugzilla – Bug 325224
Better placing of 'Implement Interface' command
Last modified: 2009-08-24 09:54:12 UTC
---- Reported by alan.mcgovern@gmail.com 2007-08-23 16:38:42 MST ---- public class Marker : IEnumerable<int> { } In the above code, it would make more sense to right click on 'IEnumerable<int>' and select whether to implement explicitly or implicitly from there rather than clicking on 'Marker' and then navigating through several layers of menu to implement the interface. Unknown operating system unknown. Setting to default OS "Other".
This is not trivial to implement because the parser service does not provide information about the context surrounding a language item. That is, it can give the type of a given identifier, but it can't tell if this identifier is in a base class declaration, a variable declaration or a type cast, and this information would be needed to implement what you propose. Maybe someday we'll improve the type resolver. Setting to enhancement meanwhile.
*** Bug 376141 has been marked as a duplicate of this bug. ***
*** Bug 369984 has been marked as a duplicate of this bug. ***
This issue is important to fix. My wife had the same problem using this function and I remember that I did ran into it when I was new to monodevelop too. Let's see, if something can be done to solve it.
Implemented. I've left the 'old way' in the context menu of the types. I don't think that it does hurt there.