C Sharp (C#) - Exception Handling
What will be the output of this code?
try {
throw new ArgumentNullException();
} catch (ArgumentException ex) when (ex.ParamName == "id") {
Console.WriteLine("Caught ArgumentException with id");
} catch (ArgumentException) {
Console.WriteLine("Caught ArgumentException");
}