#region을 사용하면 코드 편집기의 개요 기능을 사용할 때 확장하거나 축소할 수 있는 코드 블록을 지정할 수 있다.

 

설명

#region 블록은 #endregion 지시문으로 종료해야 한다.

#region 블록은 #if 블록과 겹칠 수 없다. 그러나  #region 블록을 #if 블록에 중첩할 수 있고 #if 블록을 #region 블록에 중첩할 수 있습니다.

 

 

 

[출처] docs.microsoft.com/ko-kr/dotnet/csharp/language-reference/preprocessor-directives/preprocessor-region

+ Recent posts