region

  • Thread starter Thread starter Jung, William
  • Start date Start date
J

Jung, William

#region and #endregion - is used to denote a block of code that's auto
generated?


#region Windows Form Designer generated code
#endregion
 
#region and #endregion - is used to denote a block of code that's auto
generated?

                #region Windows Form Designer generated code
        #endregion

No, #region and #endregion is a way to group similar code together and
wrap this group of code in a region. You can then collapse the region
to hide the code.

It just so happens that the auto-generated code in a form's designer
partial class is also wrapped inside of a region.
 
Back
Top