Created
June 27, 2014 21:22
-
-
Save einarwh/994d6a6ad4134e90cc59 to your computer and use it in GitHub Desktop.
All the dull code in one place.
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
TR Call<TR>(Func<TR> f) { | |
try { | |
return f(); | |
} | |
catch (SomeException ex) { | |
// Dull code. | |
} | |
catch (SomeOtherException ex) { | |
// Dull code. | |
} | |
catch (YetAnotherException ex) { | |
// Dull code. | |
} | |
catch (Exception ex) { | |
// Dull code. | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment