using System; using System.Net; public class X { /*public static void OnResolved(IAsyncResult res) { Dns.EndResolve(res); }*/ public static void Throw(int recurse) { try { if(recurse==0) { throw new Exception("Haha !"); } Throw(recurse-1); } catch(Exception err) { throw err; } } public static void Main() { /* Dns.BeginResolve("doesnotexist",new AsyncCallback(OnResolved), null);*/ Throw(4); } }