ECMA-334 C# Language Specification9.5.6: Region control |
The region directives are used to explicitly mark regions of source code.
pp-start-region conditional-sectionopt pp-end-region whitespaceopt # whitespaceopt region pp-message whitespaceopt # whitespaceopt endregion pp-messageNo semantic meaning is attached to a region; regions are intended for use by the programmer or by automated tools to mark a section of source code. The message specified in a #region or #endregion directive likewise has no semantic meaning; it merely serves to identify the region. Matching #region and #endregion directives may have different pp-messages.
The lexical processing of a region:
#region ... #endregion |
#if true ... #endif |