-
Notifications
You must be signed in to change notification settings - Fork 66
Open
Description
VB doesn't allow this today and C# does. Seems like it could be a pain if APIs require this pattern a lot.
There are special design considerations required for VB as in VB it is permitted to Goto from the Catch block back into the Try block. This would complicate the state machine rewrite a bit:
dim retryCount = 0
try
retry:
catch ex as Exception When retryCount < 3
retryCount += 1
goto retry
end try
vbcodec, rolfbjarne, TheSaltyKorean, Nukepayload2 and manuelxmarquez