今天又重新翻了翻C# Step by Step
if 语句
if(bool 表达式)
{
语句块;
}
else
{
语句块;
}
switch(day)
{
case 0:
dayName="Sunday";
break;
case 1:
dayName="Monday";
break;
default:
dayName="Unknown";
break;
}
原文:http://www.cnblogs.com/ifendo/p/4719712.html