|
1
|
| Hamish Grubijan · 技术社区 · 15 年前 |
|
|
1
1
以确定程序集是否在调试中编译 模式,从程序集获取可调试属性。假设您有一个程序集实例,那么 它: // The assembly is in a variable named assembly.
object[] attributes = assembly.GetCustomAttributes(typeof(DebuggableAttr ibute), true);
// If the array is null, or has length of zero, then it is not debuggable.
if (!(attributes == null || attributes.length == 0))
{
// It is debuggable, figure out the level.
DebuggableAttribute debug = (DebuggableAttribute) attributes[0];
// At this point, you can access the DebuggingFlags property to
// determine the level of debugging.
}
|
|
|
oohidn · 将项目更改为运行VS2012 C++ 8 年前 |
|
|
jason · 打开现有cpp文件时,Visual Studio中没有生成菜单 10 年前 |
|
|
Rooney · 向asp.net的解决方案文件添加新文件 11 年前 |