Created
May 12, 2015 08:12
-
-
Save DavidArno/50c523968245e785eb21 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DoSomethingCodeA(); | |
try | |
{ | |
var exceptionsToBeIgnored = false; | |
foreach (var x in SomeExpression) | |
{ | |
exceptionsToBeIgnored = true; | |
DoSomethingCodeB(); | |
exceptionsToBeIgnored = false; | |
} | |
} | |
catch (SomeException) | |
{ | |
if (exceptionsToBeIgnored) | |
{ | |
throw; | |
} | |
else | |
{ | |
handle it | |
} | |
} | |
DoSomethingCodeC(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment