C Sharp (C#) - Exception Handling
Consider this code:
try {
throw new ArgumentNullException("param");
} catch (ArgumentNullException ex) when (ex.ParamName == "param") {
Console.WriteLine("Parameter error");
} catch (ArgumentNullException ex) {
Console.WriteLine("Other argument null error");
}What will be printed and why?
