Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Separating C# classes into individual files

Tags:

c#

I'm looking for a tool which will split a file containing multiple C# classes, so that each class is in its own file. Does such a tool exist?

like image 858
haymansfield Avatar asked Oct 22 '10 16:10

haymansfield


1 Answers

In case you are a Resharper (or DevExpress IDE Productivity Tools) user, it has a refactoring that does this. Not sure whether you can have it process the full file as one command, but it's just a couple of keyboard strokes per class, so it can be done manually (unless we are talking hundreds of classes).

like image 186
Fredrik Mörk Avatar answered Oct 12 '22 00:10

Fredrik Mörk