<?xml version="1.0" encoding="UTF-8"?><item><title>Determining if a string exists</title><description>&lt;a href=http://www.stevex.org/dottext/archive/2004/05/24/422.aspx&gt;A comment&lt;/a&gt; on &lt;a href=http://www.stevex.org/dottext/archive/2004/05/24/422.aspx#993&gt;this post&lt;/a&gt; about the annoyance of having to test a string against null and also check it's length in situations where an "empty string" can be either has a clever solution:&#13;
&#13;
&lt;blockquote&gt;&#13;
if ((string.Empty + firstName).length &amp;gt; 0)&#13;
{&#13;
 // Do something with firstName&#13;
}&#13;
&lt;/blockquote&gt;&#13;
&#13;
Thanks Richard</description><pubDate>Thu, 01 Sep 2005 19:17:08 GMT</pubDate></item>