13、反射获取方法所在的类名称:System.Reflection.MethodBase.GetCurrentMethod().DeclaringType

12、try{}catch(){}finally{//必定进入}

            try
            {
                throw new Exception("try");
            }
            catch(Exception ex)
            {
                Debug.Write(ex.Message);//进入
                throw new Exception("catch");//进入
            }
            finally
            {
                Debug.Write("finally");//必定进入
            }            
View Code

相关文章:

  • 2022-12-23
  • 2021-04-30
  • 2021-12-31
  • 2021-12-16
  • 2021-04-11
  • 2021-06-16
  • 2022-02-12
  • 2021-06-22
猜你喜欢
  • 2021-10-11
  • 2021-09-12
  • 2021-09-06
  • 2022-12-23
  • 2021-07-16
  • 2021-12-31
  • 2021-09-05
相关资源
相似解决方案