What is the return type of IsNullOrEmpty string method?

 Posted by vishalneeraj-24503 on 7/1/2014 | Category: C# Interview questions | Views: 413 | Points: 40
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 

Comments or Responses

Login to post response