A more complicated version of this...
if (!String.IsNullOrEmpty(whatever)) {
...the following will also check to see if a string has characters which are just spaces.
if (!String.IsNullOrWhitespace(whatever)) {
No comments:
Post a Comment