Home >Backend Development >C#.Net Tutorial >Introduction to the use of switch case in C#
In C
switch(type) { case tpye1: break; case tpye2: break; case tpye3: break; case tpye4: break; };
type can be a number or a string;
The above is the switch case in C# Use the content introduced. For more related content, please pay attention to the PHP Chinese website (www.php.cn)!