<?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: C# Left, Right and Mid functions</title>
	<atom:link href="http://www.csharphelp.com/2007/07/c-left-right-and-mid-functions/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.csharphelp.com/2007/07/c-left-right-and-mid-functions/</link>
	<description>C# Tutorial and Guides</description>
	<lastBuildDate>Tue, 15 Feb 2011 13:39:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Fred</title>
		<link>http://www.csharphelp.com/2007/07/c-left-right-and-mid-functions/#comment-44</link>
		<dc:creator>Fred</dc:creator>
		<pubDate>Tue, 23 Feb 2010 23:40:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.csharphelp.com.php5-3.dfw1-2.websitetestlink.com/?p=597#comment-44</guid>
		<description>Sigh.. why can&#039;t I post a longer line?  Try again:

public static string Left(string text, int length)
{
if (length &lt; 0)
throw new ArgumentOutOfRangeException(...);
else if (length == 0 &#124;&#124; text.Length == 0)
return &quot;&quot;;
else if (text.Length &lt;= length)
return text;
else
return text.Substring(0, length);
}</description>
		<content:encoded><![CDATA[<p>Sigh.. why can&#8217;t I post a longer line?  Try again:</p>
<p>public static string Left(string text, int length)<br />
{<br />
if (length &lt; 0)<br />
throw new ArgumentOutOfRangeException(&#8230;);<br />
else if (length == 0 || text.Length == 0)<br />
return &quot;&quot;;<br />
else if (text.Length &lt;= length)<br />
return text;<br />
else<br />
return text.Substring(0, length);<br />
}</p>
]]></content:encoded>
	</item>
</channel>
</rss>

