Skip to content

Instantly share code, notes, and snippets.

@DavidArno
Created May 12, 2015 08:12
Show Gist options
  • Save DavidArno/50c523968245e785eb21 to your computer and use it in GitHub Desktop.
Save DavidArno/50c523968245e785eb21 to your computer and use it in GitHub Desktop.
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