I wonder if at least according to ECMA-334, section 15.9.5, the behaviour of following is undefined:
using System;
class FindingCountry
{
public static void Main(String[] args)
{
int a=0;
try
{
throw new ArgumentNullException((5 / a).ToString());
}
catch (DivideByZeroException)
{
}
}
}
Running it with the VS 2008 C# compiler, the exception that's thrown in the code actually never gets propagated...