Best Practices: When not/to use partial classes

Partial classes are primarily for code-generator usage, such as designers – but I use the approach you have cited – in particular when an object implements multiple (non-trivial) interfaces, I find it useful to break it up 1 file per interface implementation. I also commonly have a file for the static methods, which are usually different enough from instance methods to warrant separation.

Leave a Comment