c#中使程序跳到指定行中 if(flag1) { goto L1; } if(flag2) { goto L2; } L1://代码 L2://代码 注意只能在函数内部goto,不能goto到其他函数体里面去