开发者

when doing a extract to interface, why doesn't it modify the interface previously created?

开发者 https://www.devze.com 2022-12-12 06:57 出处:网络
I created an interface in a file, then a class that implements the interface in another file. If i add a property to the implementation class, is it possible to pass that method signature down to the

I created an interface in a file, then a class that implements the interface in another file.

If i add a property to the implementation class, is it possible to pass that method signature down to the interface automatically using开发者_如何转开发 resharper?

I tried, and it seemed to just create another interface in the same file?


You should use the Pull Members Up refactoring - that does exactly what you need

0

精彩评论

暂无评论...
验证码 换一张
取 消