Those who prefer reading this site through RSS now can also subscribe for updates to .NET Tips & Tricks Community.
Instead of:
if (!string.IsNullOrEmpty(state) && state.Length == 2)
{
...
}
do this:
bool stateIsValid = !string.IsNullOrEmpty(state) && state.Length == 2;
if (stateIsValid)