Scott Hanselman

Nesting Regions in VS.NET 2003

June 26, 2003 Comment on this post [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
Hosting By
Hosted in an Azure App Service
June 27, 2003 1:28
yeah, if you look at any of the code in Microsoft new Application Blocks/Bricks they use #region nesting all over the place.
July 01, 2003 4:58
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.

Comments are closed.

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