Wednesday, February 27, 2013

.designer.cs is one of two patterns I've seen for partial classes

The other shape I have seen has a partial class made by a code generation tool, such as a T4 template, and then a separate partial class of a human hand for extending the code generated stuff. The second file has to be independent as otherwise the code generation tool would overwrite the human crafted stuff upon updates.

No comments:

Post a Comment