20 Jan 2009
When an empty string is really an empty string…
Sometimes clarity of thinking during late night programming is elusive… 1 (footerMessage.Trim().Length == 0 ? string.Empty : footerMessage + "\r\n\r\n")(footerMessage.Trim().Length == 0 ? string.Empty : footerMessage + "\r\n\r\n") There are two bloopers in this one line of code: a string with nothing but spaces really is an empty string (for practical reasons). it would be […]