Beispiel #1
0
 public void ExceptionTest(bool throwException)
 {
     try
     {
         InternalExceptionTest(throwException);
         Test_try_finally_struct01.Eval(!throwException);
     }
     catch
     {
         Test_try_finally_struct01.Eval(hit);
         Test_try_finally_struct01.Eval(throwException);
     }
 }
Beispiel #2
0
 public void InternalExceptionTest(bool throwException)
 {
     hit = false;
     try
     {
         if (throwException)
         {
             throw new GenException <T>();
         }
         Test_try_finally_struct01.Eval(!throwException);
     }
     finally
     {
         hit = true;
     }
     Test_try_finally_struct01.Eval(!throwException);
 }