You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: documentation/src/basic-constructs.md
+6-5Lines changed: 6 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,11 +56,12 @@ foreach (var value in values.OrderByDescending(v => v))
56
56
## Switch-statement
57
57
58
58
### Handle all cases
59
-
60
-
Unhandled cases lead the program into an undefined state. If you have no natural default case, declare one throwing a [System.NotImplementedException].
Unhandled cases lead the program into an undefined state.
60
+
If you have no natural default case, declare one throwing an [`ArgumentException`] when dealing with an argument or an [`InvalidOperationException`] for all other cases.
0 commit comments