Click here to Skip to main content
Click here to Skip to main content

A nice macro that automates the task of making regions in C# code

, 3 Jan 2005
At ComponentScience where I work, we heartily embrace the use of regions to logically separate our code into meaningful blocks. After doing it manually for a couple of years, I decided to write myself a little macro to make my life easier.


Members may post updates or alternatives to this current article in order to show different approaches or add new features.

No alternatives have been posted.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Phillip H. Blanton
Web Developer
United States United States
I am a co-founder and CTO of ComponentScience Incorporated (; where my time is spent designing and developing component libraries for the Microsoft .NET framework.
I first began programming DOS-based, multiuser point of sale systems in 1989 using C and Turbo Pascal. I dabbled in Windows programming with OWL, and took it up full-time with the release of Delphi 1.
Before co-founding ComponentScience, I was employed as a senior software engineer with TurboPower Software Company, where I helped to create award-winning UI component libraries for Borland Delphi and C++ Builder. Now I am a 100% dot net junkie.

| | Privacy | Mobile
Web04 | 2.8.140827.1 | Last Updated 3 Jan 2005
Article Copyright 2004 by Phillip H. Blanton
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid