public static void staticExcept() { try { NonGen.doThrow(); } catch (GenExc <T> ) { Console.WriteLine("exception thrown and caught"); } }
public void except() { try { NonGen.doThrow(); } catch (GenExc <T> ) { //Console.WriteLine("exception thrown"); } }