There is a change in .NET Core which makes this code to behave differently than on .NET Framework.
using System;
class Program {
static void Main ()
{
X x;
try {
x = new X ();
} catch (ApplicationException) {
}
}
}
class X {
public X () => throw new ApplicationException ();
~X () => throw new NotImplementedException ();
}
With MonoVM it prints
System.NotImplementedException: The method or operation is not implemented.
but it should not (it does not with CoreCLR VM).
There is a change in .NET Core which makes this code to behave differently than on .NET Framework.
With MonoVM it prints
but it should not (it does not with CoreCLR VM).