Thursday, September 4, 2014

Only one partial class in C# needs to inherit from another class in order for the class comprised of partial classes to inherit from the parent.

This is a good trick for making generated code (which typical takes the shape of partial classes in sane implementations) play nicely with inheritance without manually changing generated code (which should smell like a bad idea to you).

No comments:

Post a Comment