The #region & #endregion directives are used to indicate that a definite block of code is to be treated as a single block with a given name, like this:
#region Member Field Declarations
int x;
double d;
Currency balance;
#endregion
This doesn ’ t look that useful by itself; it doesn ’ t affect the compilation routine in any way. However, the real advantage is that these directives are recognized by some editors, including the Visual Studio .NET editor. These editors can use these directives to lay out your code better on the screen.
0 comments:
Post a Comment