更新:2007 年 11 月
错误消息
goto case 只在 switch 语句中有效试图在 switch 语句外部使用
下面的示例生成 CS0153:
// CS0153.cs
public class a
{
public static void Main()
{
goto case 5; // CS0153
}
} | |
更新:2007 年 11 月
试图在 switch 语句外部使用
下面的示例生成 CS0153:
// CS0153.cs
public class a
{
public static void Main()
{
goto case 5; // CS0153
}
} | |