// project created on 5/6/2007 at 7:00 PM using System; using System.Threading; using System.Reflection; namespace BugTestCase { class MainClass { public static void Main(string[] args) { try { MethodInfo method = typeof(MainClass).GetMethod("AbortIt"); method.Invoke(null,new object[0]); } catch(ThreadAbortException e) { Console.WriteLine("a"); } catch(Exception e) { Console.WriteLine("b"); } } public static void AbortIt() { Thread.CurrentThread.Abort(); } } }