Visual Studio:代码重构:提取方法 [英] Visual Studio: code refactoring: Extract Method

查看:1028
本文介绍了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


这篇关于Visual Studio:代码重构:提取方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆