Search code examples
c#.netvisibleregioncompiled

#region descriptions compiled into .exe in .net?


Are #region/#endregion directive "descriptions" compiled into the .EXE in .NET? I understand that comments are NOT, but I often chunk groups of code within a region and give it a useful description.

I want to make sure these descriptions are not visible in my compiled code. (I am not looking for obfuscation information. Thanks, though.)


Solution

  • Region is the one of C# Preprocessor Directives.

    Although the compiler does not have a separate preprocessor, the directives described in this link

    http://msdn.microsoft.com/en-us/library/ed8yd1ha(v=vs.110).aspx

    are processed as if there were one.

    But I wonder that, what is the aim of this question? :)