Last active
August 29, 2015 14:08
-
-
Save darylf/fe919ec783d8d2684250 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
// Refactor the below code. | |
try | |
{ | |
abc = !String.IsNullOrEmpty(wsResponse.Webservice.AbcValue) ? Convert.ToInt32(wsResponse.Webservice.AbcValue) : 0; | |
} | |
catch (Exception ex) | |
{ | |
//throw it out and it will be handled by the caller | |
throw ex; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Note: The try/catch is unnecessary if it's not actually handling the exception!