Is there any way in VS 2010 to auto update classes referencing an Interface?
Say i add a parameter to Export, is there any function that will update all my referencing interfaces?
public interface IStateExporter
{
void Export();
}
to
public interface IStateExporter
{
void Export(string path);
}
The Refactor context menu lets you remove and re-order parameters and will update all implementations of the interface. But, the best VS2010 can offer when adding a parameter is the ability to automatically implement the updated member with a new method that throws NotImplementedException.
I know CodeRush/Refactor Pro from DevExpress has a function that walks you through adding/changing parameters and visiting each implementer to let you add the parameter. I imagine ReSharper has the same feature, but I don’t know for sure.