Where partial types fit in

The primary purpose of partial types is to support in separating machine-generated code from the code you work with. For example, VS2008 ASP.NET and Windows Forms project and item wizards create skeleton classes divided into two files. This reduces the amount of code you have to work with directly because your code is in one file and the machine-generated code is in another.

posted @ 2010-03-03 11:51  能巴  阅读(173)  评论(0编辑  收藏  举报