Home  >  Article  >  Backend Development  >  Introduction to the use of switch case in C#

Introduction to the use of switch case in C#

黄舟
黄舟Original
2017-01-19 10:35:461754browse

In C

#
switch(type)   
{   
case tpye1:   
break;   
case tpye2:   
break;   
case tpye3:   
break;   
case tpye4:   
break;   
};

type can be a number or a string;

Introduction to the use of switch case in C#

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)!


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn