c#语法 try..catch..finally
bool isSent=false try { } catch(Exception ex) { //write log throw ex; } finally {
//不管上面是否有异常,这段都会执行 //write log } return isSent;
bool isSent=false try { } catch(Exception ex) { //write log throw ex; } finally {
//不管上面是否有异常,这段都会执行 //write log } return isSent;