public void ExceptionTest(bool throwException) { try { InternalExceptionTest(throwException); Test_try_catch03.Eval(!throwException); } catch { Test_try_catch03.Eval(throwException); } }
public void InternalExceptionTest(bool throwException) { string ExceptionClass = typeof(GenException <T>).ToString(); try { if (throwException) { throw new GenException <T>(); } if (throwException) { Test_try_catch03.Eval(false); } } catch (GenException <System.InvalidCastException> ) { //this should never bee hit! Test_try_catch03.Eval(false); } }