Home > Backend Development > C#.Net Tutorial > Introduction to the use of switch case in C#

Introduction to the use of switch case in C#

黄舟
Release: 2017-01-19 10:35:46
Original
1823 people have browsed it

In C

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

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


Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template