Fun with #region


I am not sure if I did this on accident, or my intern did it, but I found this in my code:

#region Constructors

//code here

#endregion Constructors

I was not aware you can put a tag after #endregion. Kind of nice to clearly delineate long regions. Not that it really matters, but Visual Studio allows you to put whatever text you want after #endregion, even if it doesn't match the #region label.

,

Leave a Reply

Your email address will not be published. Required fields are marked *