我正要重構這個VB6代碼(由別人寫的)。 Public Function GetValue(ID As Long) As Boolean
On Error GoTo eh
'' ... DAL Logic...
eh_Exit:
On Error GoTo 0
Exit Function
eh:
Resume eh_Exit
End Fu
我正在VB.NET中編寫一些使用switch語句的代碼,但在其中一種情況下需要跳轉到另一個塊。在C#中它看起來像這樣: switch (parameter)
{
case "userID":
// does something here.
case "packageID":
// does something here.
case "mvrT