C# Switch

PHOTO EMBED

Tue Aug 09 2022 12:21:50 GMT+0000 (UTC)

Saved by @Marcos_ #csharp

switch(expression) 
{
  case x:
    // code block
    break;
  case y:
    // code block
    break;
  default:
    // code block
    break;
}
content_copyCOPY

https://www.w3schools.com/cs/cs_switch.php