问题描述
.NET中是否已将#region/#endregion指令描述"编译到.EXE中?我知道注释不是,但是我经常在一个区域内对代码组进行分块,并提供有用的描述.
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.)
推荐答案
区域是C#预处理程序指令之一.
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? :)
这篇关于#区域说明已在.net中编译为.exe?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!