是否有任何工具来帮助我重构使用方法调用的位置为基础,以基于名称的参数 [英] Is there any tools to help me refactor a method call from using position-based to name-based parameters

查看:141
本文介绍了是否有任何工具来帮助我重构使用方法调用的位置为基础,以基于名称的参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望喜欢变换代码:

var p = new Person("Ian", "Smith", 40, 16)

要:

var p = new Person(surname: "Ian", givenName:"Smith", weight:40, age:16)

由于在使代码更易读的第一步,我愿意使用第三方重构工具,如果需要的话。

As a first step in making the code more readable, I am willing to use a 3rd party refactoring tool if need be.

(请不要告诉我使用参数对象和因素的方法等,这些可能会晚一点一次我至少可以读取的代码!)

(Please do not tell me to use parameter objects and factor methods etc, these may come later once I can at least read the code!)

推荐答案

重构V2001卷1.3 声称自己是能够做到这一点

Refactor v2001 vol 1.3 claims to be able to do it.

ReSharper的有它在它的数据库问题,的但没有COMMITED这样做还

ReSharper has it in it's issues database, but have not commited doing it yet.

这篇关于是否有任何工具来帮助我重构使用方法调用的位置为基础,以基于名称的参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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