Switch in C # is a branch judgment statement, which is similar to the 'Case' statement in VB. such as:
In VB:
Select Case X
Case 1
Func1
Case 2
FUNC 2
End SELECT
In C #:
Switch (x);
{
Case 1:
Func1 ();
Break;
Case 2:
Func2 (0);
}