Partial classes

Another reason to use partial classes is to separate boilerplate code from non-boilerplate code.

2 Likes

Never thought of that in this way. But it sounds reasonable.

1 Like

Yeah, I think the main reason for doing it that way is the boilerplate code will hardly ever be modified so if you put it in a separate partial class you won’t have to be distracted by it when you update your regular code.

1 Like

Privacy & Terms