私はそれに似たコードを持っています:
Using conn As OdbcConnection = getNewConnection()
'' Some code
If breakFlag Then
canExit = True
GoTo exitUpdate
End If
exitUpdate:
End Using
GOTO文をなくしたい。
そのため、ExitUsing コマンドがあると便利ですが、まだありません。
同様の状況で Using ブロックを終了するための良い方法はありますか、それともコードを別の方法で設計する必要がありますか?