String.IsNullOrEmpty



Instead of

if ((variable != null) && (variable != String.Empty)) 
{
}

use

if (String.IsNullOrEmpty(variable) 
{
}





© 2024 Better Solutions Limited. All Rights Reserved. © 2024 Better Solutions Limited TopPrevNext