Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
In .NET Framework 4.0 we have String.IsNullOrWhiteSpace.
String sData = " ";
if (String.IsNullOrWhiteSpace(sData))
{
Console.WriteLine("Nothing to do");
}
This would help us to determine whether to work with a string without calling additional Trim() method.
Namoskar!!!