Scott Hanselman

Nesting Regions in VS.NET 2003

June 26, '03 Comments [2] Posted in Web Services
Sponsored By

Did you know that you can nest #regions in VS.NET?  You can create hierarchies of regions...seems obvious, but it wasn't to me.  Thanks to Rocco for the tip.

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by SherWeb
Thursday, June 26, 2003 9:28:23 PM UTC
yeah, if you look at any of the code in Microsoft new Application Blocks/Bricks they use #region nesting all over the place.
Tuesday, July 01, 2003 12:58:08 AM UTC
odd things happen if you try to start a region in one method and end it in another. same is true if you start a region outside a method but try to end it somewhere in the middle of a method.
Jim Blizzard
Comments are closed.

Disclaimer: The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.