.NET Framework 4.0 Newbie : String.IsNullOrWhiteSpace

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!!!