c# switch-case
2021-03-31 23:27
标签:use bre evel can case ase TE efault equal switch (level) } NOTE:can only use in equal-value c# switch-case 标签:use bre evel can case ase TE efault equal 原文地址:https://www.cnblogs.com/lsjava/p/9245787.html
{
case ‘A‘:
salary2 = salary1 + 500;
break;
case ‘B‘:
salary2 = salary1 + 300;
break;
case ‘C‘:
salary2 = salary1;
break;
case ‘D‘:
salary2 = salary1 - 200;
break;
default:
salary2 = salary1;
break;