c#语法 try..catch..finally

           bool isSent=false 
            try
            {

            }
            catch(Exception ex)
            {
                //write log
         
                throw ex;
            }
            finally
            {
          //不管上面是否有异常,这段都会执行
//write log } return isSent;

 

posted @ 2022-04-19 09:35  katesharing  阅读(32)  评论(0编辑  收藏  举报