【发布时间】:2011-05-07 08:26:51
【问题描述】:
下面是代码sn-p:
class xxx
{
public xxx(){}
try
{
throw new Exception(InvalidoperationException);
}
catch(Exception x)
{
}
catch(InvalidoperationException x)
{
}
}
谁能告诉这里会引发哪个异常以及它背后的原因是什么。
【问题讨论】:
-
"下面是一个代码 sn-p" - 不是可以编译的。
标签: c# .net exception exception-handling invalidoperationexception