[英]Move method to new file and keep it in the same class(make it partial)
I have a lot of classes with several methods. 我有很多使用几种方法的类。 And i need to separate each method of the class in its own file, but kept they in the same class( make it partial).
而且我需要将类的每个方法都隔离在自己的文件中,但要将它们保留在同一类中(使它成为局部的)。
Exploring the R# 6.1 options i haven't found linear possibility. 探索R#6.1选项时,我没有发现线性可能性。 May be there are hidden options?
可能有隐藏的选项?
Thanks 谢谢
Added: 添加:
This refactoring is not usual because this code is UI tests, that grouped in class by the part of functionality. 这种重构并不常见,因为此代码是UI测试,按功能部分在类中分组。 We need to separate them to be able to work on them separately from source control.
我们需要将它们分开,以便能够与源代码控制分开处理它们。
I'm using ReSharper 5.1 and do not know such refatoring in one step. 我正在使用ReSharper 5.1,一步就不知道这种引用。
The fastest way I know is: 我知道最快的方法是:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.