A tool to combine partial classes into one class?

Is there a tool for combining partial classes into one non-partial class?

I cannot use Reflector, since I need variable names, etc. to match.

EDIT:

I have hundreds of partial classes that I want to combine, so cut-paste is not realistic.

+5
source share
4 answers

Resharper has a Copy Type function that allows you to copy all parts of a type to a single file: http://www.jetbrains.com/resharper/documentation/reviewers_guide.html#refactorings

However, there is a manual effort, since you need to open at least one file for each file and call the functionality.

+4

, - ReSharper, ReSharper 6.1, partial ALT + ENTER, " ".

, , . , , .

Edit: , , . , ( , Reflector, , ReSharper ).

+3
Edit -> Copy -> Paste. 

.

+2

, .

If you have hundreds of partial classes, it should be simple enough to make a bot to do just that, only x100 times.

0
source

All Articles