In my app, I want to check if a string variable is empty.
I've handled it as follows,
if ((Name == null) || (Name == ""))
{
//Handled
}
But it passes this condition, if the value is given as " "(whitespace). How can i detect if the variable contains only whitespaces??
Thanks in advance!