Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

switch case c#

int value = 0;
switch (value) {
  case 0:
    // do something
    break;
  case 1: 
    // do something else
    break;
   
  default :
  	// something if anything not match
}
Source by www.c-sharpcorner.com #
 
PREVIOUS NEXT
Tagged: #switch #case
ADD COMMENT
Topic
Name
4+8 =