<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Guarding Against Multiple Empty Strings</title>
	<atom:link href="http://johnnycoder.com/blog/2008/11/12/guarding-against-multiple-empty-strings/feed/" rel="self" type="application/rss+xml" />
	<link>http://johnnycoder.com/blog/2008/11/12/guarding-against-multiple-empty-strings/</link>
	<description></description>
	<lastBuildDate>Wed, 08 Feb 2012 05:13:13 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Piyush</title>
		<link>http://johnnycoder.com/blog/2008/11/12/guarding-against-multiple-empty-strings/comment-page-1/#comment-230847</link>
		<dc:creator>Piyush</dc:creator>
		<pubDate>Thu, 06 Jan 2011 10:37:33 +0000</pubDate>
		<guid isPermaLink="false">http://johnnycoder.com/blog/2008/11/12/guarding-against-multiple-empty-strings/#comment-230847</guid>
		<description>You can also use yourstring.Any() to check whether it contains any elements.</description>
		<content:encoded><![CDATA[<p>You can also use yourstring.Any() to check whether it contains any elements.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Griswold</title>
		<link>http://johnnycoder.com/blog/2008/11/12/guarding-against-multiple-empty-strings/comment-page-1/#comment-216932</link>
		<dc:creator>Ben Griswold</dc:creator>
		<pubDate>Thu, 18 Mar 2010 22:55:42 +0000</pubDate>
		<guid isPermaLink="false">http://johnnycoder.com/blog/2008/11/12/guarding-against-multiple-empty-strings/#comment-216932</guid>
		<description>@DeveloperIT - Thanks for the comment. There are multiple issues with my experimental code. Happy for your feedback.</description>
		<content:encoded><![CDATA[<p>@DeveloperIT &#8211; Thanks for the comment. There are multiple issues with my experimental code. Happy for your feedback.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DeveloperIT</title>
		<link>http://johnnycoder.com/blog/2008/11/12/guarding-against-multiple-empty-strings/comment-page-1/#comment-216925</link>
		<dc:creator>DeveloperIT</dc:creator>
		<pubDate>Thu, 18 Mar 2010 22:32:50 +0000</pubDate>
		<guid isPermaLink="false">http://johnnycoder.com/blog/2008/11/12/guarding-against-multiple-empty-strings/#comment-216925</guid>
		<description>@discordinoffice - You&#039;re right.... and let&#039;s say you have string A containing 1 000 000 characters, string B 1 000 000 more and string c is empty (not null). Then you have a mutiplication of 1 000 000 by a 1 00 000 then by 0. I don&#039;t know if .net does &quot;looks&quot; at all params befrore doing the actual operation, but if not, you have a lack of performance, especially if you&#039;re running that block into a loop. I, as a best pratice, would always consider usign String.IsNullOrEmpty and avoid using Length if not absolutly necessary. What do you think ?</description>
		<content:encoded><![CDATA[<p>@discordinoffice &#8211; You&#8217;re right&#8230;. and let&#8217;s say you have string A containing 1 000 000 characters, string B 1 000 000 more and string c is empty (not null). Then you have a mutiplication of 1 000 000 by a 1 00 000 then by 0. I don&#8217;t know if .net does &#8220;looks&#8221; at all params befrore doing the actual operation, but if not, you have a lack of performance, especially if you&#8217;re running that block into a loop. I, as a best pratice, would always consider usign String.IsNullOrEmpty and avoid using Length if not absolutly necessary. What do you think ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Griswold</title>
		<link>http://johnnycoder.com/blog/2008/11/12/guarding-against-multiple-empty-strings/comment-page-1/#comment-199157</link>
		<dc:creator>Ben Griswold</dc:creator>
		<pubDate>Wed, 10 Jun 2009 03:04:51 +0000</pubDate>
		<guid isPermaLink="false">http://johnnycoder.com/blog/2008/11/12/guarding-against-multiple-empty-strings/#comment-199157</guid>
		<description>@discordinoffice - Hey, you&#039;re right.  Assuming that null values were possible, the latter approach would bomb. Probably not the best approach after all.  Thanks.</description>
		<content:encoded><![CDATA[<p>@discordinoffice &#8211; Hey, you&#8217;re right.  Assuming that null values were possible, the latter approach would bomb. Probably not the best approach after all.  Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: discordinoffice</title>
		<link>http://johnnycoder.com/blog/2008/11/12/guarding-against-multiple-empty-strings/comment-page-1/#comment-199154</link>
		<dc:creator>discordinoffice</dc:creator>
		<pubDate>Wed, 10 Jun 2009 01:50:24 +0000</pubDate>
		<guid isPermaLink="false">http://johnnycoder.com/blog/2008/11/12/guarding-against-multiple-empty-strings/#comment-199154</guid>
		<description>In the latter example, it seems worth noting that the &quot;settled on&quot; approach will throw a NullReferenceException if any of the variables being checked are set to NULL, instead of &quot;&quot; (or empty string).  For this reason alone the first, more verbose, approach should ultimately be utilized.</description>
		<content:encoded><![CDATA[<p>In the latter example, it seems worth noting that the &#8220;settled on&#8221; approach will throw a NullReferenceException if any of the variables being checked are set to NULL, instead of &#8220;&#8221; (or empty string).  For this reason alone the first, more verbose, approach should ultimately be utilized.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

