why we must use region?

  • Thread starter Thread starter Arda Han
  • Start date Start date
Hi,

It's a tool to organize the source code
If you use the VS.NET IDE you can collapse/expand it , it greatly improve
the readability of the code


Cheers,
 
what is region? which time we must use it?

You don't *HAVE* to use it at all, unless you want to. You can totally
ignore it, if you care to do so.

A #region..... will put code that logically belongs together (e.g. all
the methods implementing a particular interface) into a block, so that
you can "fold" that block away (into a single line in the code
editor), and open it up again later on.

Again - you don't *HAVE* to use regions at all - you CAN if you want
to. They can make code navigation and organization a lot easier, if
used properly.

Marc

================================================================
Marc Scheuner May The Source Be With You!
Bern, Switzerland m.scheuner(at)inova.ch
 
Back
Top