示例#1
0
 public void ExceptionTest(bool throwException)
 {
     try
     {
         InternalExceptionTest(throwException);
         Test_try_finally02.Eval(!throwException);
     }
     catch
     {
         Test_try_finally02.Eval(throwException);
     }
 }
示例#2
0
    public void InternalExceptionTest(bool throwException)
    {
        string ExceptionClass = typeof(GenException <T>).ToString();

        try
        {
            if (throwException)
            {
                throw new GenException <T>();
            }
            Test_try_finally02.Eval(!throwException);
        }
        finally
        {
            Test_try_finally02.Eval(true);
        }
        Test_try_finally02.Eval(!throwException);
    }