可能重复:
在C#中忽略异常
有时在极少数情况下你真的想忽略异常.做这个的最好方式是什么?我的方法是抓住异常,但不做任何事情.其他?
try
{
blah
}
catch (Exception e)
{
<nothing here>
}
Run Code Online (Sandbox Code Playgroud)