#region/#endregion (or #pragma region/endregion in C++)lets you specify a block of code that you can expand or collapse when usi

/ Published in: C#
Save to your folder(s)

This is a means of applying a comment to a section of code so that it can be expanded or hidden as a group.

Use #pragma region in C/C++.

Copy this code and paste it in your HTML
  1. // preprocessor_region.cs
  2. #region MyClass definition
  3. public class MyClass
  4. {
  5. public static void Main()
  6. {
  7. }
  8. }
  9. #endregion

URL: http://msdn.microsoft.com/en-us/library/9a1ybwek%28VS.71%29.aspx

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.