Partial Classes in C#

This post is based on Chapter 5 of Andrew Troelsen’s “Pro C# 2008 and the .Net Platform” availble from Apress.

Partial classes cimply allow you to define a class across several .cs files. If you’re a ASP.NET or windows forms developer you will know this already from the .designer.cs classes – adn this is also a very good example of the intended use.
Basically it’s a tool for removing code clutter from your classes and provides a mean for seperating code from large class definitions into logical units.

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: