C Sharp (C#) - Exception Handling
Consider this code snippet:
try {
// code
} catch (Exception ex) when (ex is ArgumentException) {
Console.WriteLine("Argument exception caught");
} catch (Exception ex) {
Console.WriteLine("General exception caught");
}What will be printed if an ArgumentException is thrown?
