Select from following answers:- if (string_variable != null || string_variable != "") { }
- if (string_variable != null || string_variable != string.Empty) { }
- if(string.IsNullOrEmpty(string_variable)) { }
- All of the above.
- All Above

Above all ways are used to check whether string is empty or null.
Show Correct Answer
Asked In: Many Interviews |
Alert Moderator