今天第一次看到别人这样写,孤陋寡闻了。
这个用法挺常见的。
MSDN中对这个组合有详细的解释:
#pragma region lets you specify a block of code that you can expand or collapse when using the outlining feature of the Visual Studio Code Editor.
简单的说就是可以使得代码块能够在vs代码编辑器里面收缩和展开。
更多详细信息:
https://msdn.microsoft.com/en-us/library/b6xkz944(VS.80).aspx