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