This post originated from an RSS feed registered with .NET Buzz
by Duncan Mackenzie.
Original Post: Jay discusses the use of partial classes in Windows Forms 2.0
Feed Title: Code/Tea/Etc...
Feed URL: /msdnerror.htm?aspxerrorpath=/duncanma/rss.aspx
Feed Description: Duncan is the Visual Basic Content Strategist at MSDN, the editor of the Visual Basic Developer Center (http://msdn.microsoft.com/vbasic), and the author of the "Coding 4 Fun" column on MSDN (http://msdn.microsoft.com/vbasic/using/columns/code4fun/default.aspx). While typically Visual Basic focused, his blogs sometimes wanders off of the technical path and into various musing of his troubled mind.
This new feature, which isn't limited to Windows Forms, allows a single class to extend across multiple files, isn't limited to Windows Forms but the designer-generated code is just screaming out for a solution like this.
In Whidbey, the WinForms designer takes advantage of a new C# language feature called “partial classes”.This allows them to pull out the designer generated code into a separate file.It has several advantages...