views:

92

answers:

2

I used XSD.EXE to to generate a C# files from an XSD schema. Unfortunately, this tool extracts all the classes into a single allClasses.cs file.

Has anyone got a good technique(or tool) that will extract each of the classes in the allClasses.cs file into their own respective file e.g. ClassA.cs, ClassB.cs, etc. ?

A: 

You can use re-sharper to separate the classes

http://stackoverflow.com/questions/169310/is-using-resharper-a-time-saver

Kevin
I have to go through each class individually and Right Click -> MOVE. Do you know if there is a way to select all classes and move all to their own file?
guazz
@guazz see @derigel's answer
hmemcpy
+1  A: 

Just released ReSharper 5.0 have project-level refactorings. Right click on the file, Refactor -> Move types into matching files

derigel