C Sharp (C#) - Exception Handling
Which of the following shows the correct way to write a catch block with a when clause in C#?
Which of the following shows the correct way to write a catch block with a when clause in C#?
when keyword is used with parentheses for the condition.catch (Exception ex) when (condition). Options B, C, and D use invalid keywords.when is valid for conditional catch filters [OK]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions