Answer: IsNullOrEmpty string method returns Boolean value as True or False. If any string contains any
value then IsNullOrEmpty method returns True otherwise returns False.
For Example:-
string value = string.Empty;
if (string.IsNullOrEmpty(value))
{
return true;
}
else
{
return false;
}
Asked In: Many Interviews |
Alert Moderator