24.5 region and endregion


24.5 #region and #endregion

You can mark arbitrary sections of your code using region names using the #region and #endregion directives. These directives are totally ignored by most compilers but may be useful for C# IDEs (such as VS .NET), which may use regions defined this way for special display purposes.

An IDE may want to demarcate a source file into several regions and insert these region directives 'behind the scenes'. When the source is displayed within the IDE, these directives are usually not displayed, but used internally by the IDE.



From Java to C#. A Developers Guide
From Java to C#: A Developers Guide
ISBN: 0321136225
EAN: 2147483647
Year: 2003
Pages: 221
Authors: Heng Ngee Mok

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net