Sponsored Ad

Tuesday, October 20, 2009

C# Region

#region lets you specify a blocking of code that you can spread out or collapse when using the outlining feature of the Visual Studio Code Editor.

A #region block must be complete with a #endregion directive.

A #region block cannot convergence with a #if block. However, a #region block can be nested in a #if block, and a #if block can be nuzzled in a #region block.

// preprocessor_region.cs
#region MyClass definition
public class MyClass
{
   public static void Main()
   {
   }
}
#endregion

0 comments:

Post a Comment

Sponsored Ad

Website Update

Followers