Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

merge partial classes in resharper

Is there any simple possibility to merge partial class definitions to one? I have one enormous cs file with generated class definitions and a list of their summaries and additional attributes in an extra file. Have no desire to maintain them both.

like image 816
python_kaa Avatar asked Oct 10 '13 10:10

python_kaa


1 Answers

In ReSharper simply click on the "partial" keyword in any of your partial classes. You should see a hammer icon in the left of the IDE. Click on the hammer icon and select "Merge Partial Declaration". This will merge 2 partial classes to one.

like image 76
Spock Avatar answered Sep 29 '22 08:09

Spock