<?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: Pascal case to human readable with C# extension methods</title>
	<atom:link href="http://www.darkhelmetlive.com/blog/2008/08/02/pascal-case-to-human-readable-with-csharp-extension-methods/feed" rel="self" type="application/rss+xml" />
	<link>http://www.darkhelmetlive.com/blog/2008/08/02/pascal-case-to-human-readable-with-csharp-extension-methods</link>
	<description>programming, video games, love, and in between</description>
	<pubDate>Fri, 09 Jan 2009 00:53:14 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: darkhelmet</title>
		<link>http://www.darkhelmetlive.com/blog/2008/08/02/pascal-case-to-human-readable-with-csharp-extension-methods/comment-page-1#comment-501</link>
		<dc:creator>darkhelmet</dc:creator>
		<pubDate>Fri, 19 Sep 2008 18:06:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.darkhelmetlive.com/blog/?p=290#comment-501</guid>
		<description>Well to handle that I could do

if (1 == s.length())
  return s;

right at the beginning of the function. If the string is only 1 character long, all that is needed it to return the string, so this would solve the problem, unless I'm missing something.</description>
		<content:encoded><![CDATA[<p>Well to handle that I could do</p>
<p>if (1 == s.length())<br />
  return s;</p>
<p>right at the beginning of the function. If the string is only 1 character long, all that is needed it to return the string, so this would solve the problem, unless I&#8217;m missing something.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steph</title>
		<link>http://www.darkhelmetlive.com/blog/2008/08/02/pascal-case-to-human-readable-with-csharp-extension-methods/comment-page-1#comment-500</link>
		<dc:creator>Steph</dc:creator>
		<pubDate>Fri, 19 Sep 2008 15:18:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.darkhelmetlive.com/blog/?p=290#comment-500</guid>
		<description>Oups!
Your ToHumanFromPascal method will not handle properly strings that are 1 character long.

Add the following at the end:

if (ca.Length &#62; 1)
{
   sb.Append(ca[ca.Length - 1]);
}

:)
That's it!
Stephane.</description>
		<content:encoded><![CDATA[<p>Oups!<br />
Your ToHumanFromPascal method will not handle properly strings that are 1 character long.</p>
<p>Add the following at the end:</p>
<p>if (ca.Length > 1)<br />
{<br />
   sb.Append(ca[ca.Length &#8211; 1]);<br />
}</p>
<p> <img src='http://www.darkhelmetlive.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> <br />
That&#8217;s it!<br />
Stephane.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dynamic Data and Custom Metadata Providers @ ZDima.net</title>
		<link>http://www.darkhelmetlive.com/blog/2008/08/02/pascal-case-to-human-readable-with-csharp-extension-methods/comment-page-1#comment-498</link>
		<dc:creator>Dynamic Data and Custom Metadata Providers @ ZDima.net</dc:creator>
		<pubDate>Mon, 01 Sep 2008 12:18:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.darkhelmetlive.com/blog/?p=290#comment-498</guid>
		<description>[...] Line 12: I first check to see if the property already has the DisplayNameAttribute defined. If it does I don't do anything. But if it doesn't have this attribute defined, I use the properties name to generate the friendly display name using the ToHumanFromPascal function (which I stole from here). [...]</description>
		<content:encoded><![CDATA[<p>[...] Line 12: I first check to see if the property already has the DisplayNameAttribute defined. If it does I don&#8217;t do anything. But if it doesn&#8217;t have this attribute defined, I use the properties name to generate the friendly display name using the ToHumanFromPascal function (which I stole from here). [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
