Main public logs
Combined display of all available logs of Knowledge Base. You can narrow down the view by selecting a log type, the username (case-sensitive), or the affected page (also case-sensitive).
- 16:50, 17 January 2025 Chr1ss talk contribs created page Conditional Cases in Switch Statements (Created page with "When working with switch statements, you can use a when clause instead of an if/else in your case expressions. The switch statement with pattern matching was introduced in C# 7. <pre> switch( cow.Name ) { case "Alf": if( cow.Weight >= 100 ) { // Do This } else { // Do that } break; default: // Else break; } </pre> <pre> switch ( cow.Name ) { case "Alf" when cow....")