Refactoring "If Not [somestringvalue] Is Nothing"
Hi,
I've inherited a VB.Net project and one of the things that really bugs me is that the other developer always checked strings against Nothing instead of using String.IsNullOrEmpty(). And the following code clearly assumes a string with length > 0.
Do I have to manually do a search and check every "Is Nothing" in the code or is there a faster way?
0 comments:
Post a Comment