All pastes #474123 Raw Edit

Mine

public text v1 · immutable
·published 2007-05-06 17:07 UTC
rendered paste body
// 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();
		}
	}
}