Visual Studio:代码重构:提取方法
问题描述:
我使用了该函数(右键单击您的代码,Refactor>>提取方法)来重构我的代码.如何调整新方法?我找不到代码.
在此先感谢
Hi,
I used the function (right click on your code, Refactor >> Extract Methods) for refactoring my code. How can I adjust my new method? I can''t find my code back.
Thanks in advance
答
正确查找.您的方法就在那里;我保证. :-)
此重构方法正常工作.它可能不会更改您的代码,但是在这种情况下,Visual Studio会显示一个对话框消息,说明您当前选择的原因并不表示可以通过这种方式重构的代码片段.再次,请正确阅读.—SA
Look properly. Your method is there; I''ll guarantee that. :-)
This refactoring method works properly. It might change nothing in your code, but in this case Visual Studio shows a dialog box message explaining why you current selection does not indicate a fragment of code which can be refactored in this way. Again, read properly.—SA