Is there a way to make my switch/case fall through to the next case in C#?

后端 未结 4 1782
后悔当初
后悔当初 2021-02-19 03:28

I\'m using a switch/case statement to handle some updates for a deployed application. Basically, I want to waterfall through the cases to perform the update from the current run

4条回答
  •  北恋
    北恋 (楼主)
    2021-02-19 04:07

    put a break; after UpdateToV2();

    Couldnt you get rid of the goto case "1" as it will fall through to that anyway?

提交回复
热议问题