Introduction to the use of switch case in C#

黄舟
Release: 2017-01-19 10:35:46
Original
1800 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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!