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