region : Region : Preprocessing Directives C# Examples


C# Examples » Preprocessing Directives » Region »

 

region





The #region and #endregion directives define a region that will be expanded or collapsed when using outlining in the Visual Studio IDE.
The general form is shown here:




    
#region  region-name  
  //  code  sequence
#endregion
    
   
  
   





    
using  System;

class  MainClass
{
    [STAThread]
    static  void  Main(string[]  args)
    {
            #region  Stuff  
                    
        
            #endregion

    }

}
    
   
  
   




HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Preprocessing Directives
» Region