Documentation for exception thrown within when
expression
#1086
Labels
type: bug
The Standard does not describe the language as intended or implemented
Milestone
Type of issue
Missing information
Description
I could not find good documentation on the expected behavior if an exception is thrown within the
when
expression. I wanted to confirm whether any additional exception handling was necessary in this use case.Based on a quick test, it appears that the exception is suppressed, and the associated exception handler does not execute. Can the behavior be documented?
Page URL
https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/when
Content source URL
https://github.com/dotnet/docs/blob/main/docs/csharp/language-reference/keywords/when.md
Document Version Independent Id
15502bbc-5355-2add-0fa8-ae31dc01c122
Article author
@BillWagner
Metadata
The text was updated successfully, but these errors were encountered: