Quantcast
Channel: Composite Code » c#
Viewing all articles
Browse latest Browse all 16

Reasons to Love Refactoring with ReSharper

$
0
0

It started like this.

string responseValue;

if (null == vcapResponse)
{
    responseValue = message;
}
else
{
    responseValue = vcapResponse.Description;
}

return responseValue;

…and after a few alt+enter hits…

return null == vcapResponse ? message : vcapResponse.Description;

I ended up with that beauty. Oh yeah. :)

…and for today, that’s it. Whew!



Viewing all articles
Browse latest Browse all 16

Trending Articles