We use partial classes a lot in the DSL Tools. We need them to help compose code that's generated from different places, and generated with handwritten code.
If you're not familiar with it, a partial class definition is just a set of methods, properties etc that gets combined with another partial definition at link time, to form a complete class. The parts can be in different source files, which makes it easier to manage them separately: different generators can output to different
read more »
Be the first to post a Comment!