In resharper is it possible to force an update of an interface?
Basically I have a class that inherits from an interface but this class is constantly changing so I need to reflect the changes in the interface otherwise VS complains that I am not implementing something as the signature of the method has changed.
I was wondering if there is a way in resharper to say "Update this class with its interface" ?
Any ideas?
Although not the best way to design, sometimes it is necessary to update the interface based on the modified class.
You can update the interface using resharper's Pull Members Up option.
Pull Members Up
option in the refactor menuThe members have now been added to the interface.
If you use ReSharper to modify the method, it can/will also modify the interface definition.
For instance, if you use ReSharper's Rename functionality on the method, the interface definition of it will get renamed. Additionally, if you use ReSharper's Change Signature functionality on the method, it asks you if you want to do the refactoring on the interface as well.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With