Answer: Use
string Length static property to check where string is empty or not.
For Example:-
string value = "Vishal";
int length = value.Length;
Note:-If the variable length value is greater than 0 then string has a value assigned to it.
Asked In: Many Interviews |
Alert Moderator