Reasons to Love Refactoring with ReSharper

It started like this.

[sourcecode language=”csharp”]
string responseValue;

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

return responseValue;
[/sourcecode]

…and after a few alt+enter hits…

[sourcecode language=”csharp”]
return null == vcapResponse ? message : vcapResponse.Description;
[/sourcecode]

I ended up with that beauty. Oh yeah. 🙂

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