String.IsNullOrWhiteSpace
This was introduced in Framework 4.0
Instead of
if (String.IsNullOrEmpty(variable.Trim()))
{
}
use
if (String.IsNullOrWhiteSpace(variable))
{
}
© 2023 Better Solutions Limited. All Rights Reserved. © 2023 Better Solutions Limited TopPrevNext