#endregion (C# Reference)

 

Updated: July 20, 2015

For the latest documentation on Visual Studio 2017 RC, see Visual Studio 2017 RC Documentation.

#endregion marks the end of a #region block. For example:

  
      #region MyClass definition  
class MyClass   
{  
    static void Main()   
    {  
    }  
}  
#endregion  

C# Reference
C# Programming Guide
C# Preprocessor Directives

Show: