div*_*nci 4 c# garbage-collection exception-handling exception
抛出或遇到异常时:
void ThrowException()
{
try
{
throw new Exception("Error");
}
catch
{
}
}
Run Code Online (Sandbox Code Playgroud)
它是如何从记忆中消失的?
以上代码与Exception对象的内存处理有何不同以下代码?
void ThrowException()
{
try
{
throw new Exception("Error");
}
catch(Exception e)
{
}
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
218 次 |
| 最近记录: |