<分区>
说有一个方法,
void M(int a, int b, int c /* and many more */)
有没有办法在调用站点将 M()
转换为 M(a: .., b: .., c: ..)
?
我正在使用 Visual Studio 2013(旗舰版) 2017 Professional 和 ReSharper 8 ReSharper 2018.1。使用其中任何一个的内置解决方案(或扩展,如果需要)将是合适的。
这类似于 Is there any tools to help me refactor a method call from using position-based to name-based parameters ,虽然我希望从没有参数开始;并在 4 年后问这个问题。