DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
IsNullOrEmpty Function Of String
IsNullOrEmpty function of string
string stringS = null;
if (string.IsNullOrEmpty(stringS))
{
Console.WriteLine("It is empty or Null");
}
else
{
Console.WriteLine("Not empty");
}





