<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:copyright="http://blogs.law.harvard.edu/tech/rss" xmlns:image="http://purl.org/rss/1.0/modules/image/">
    <channel>
        <title>Chris Martin's Blog</title>
        <link>http://geekswithblogs.net/cmartin/Default.aspx</link>
        <description>A Developer and so on...</description>
        <language>en-US</language>
        <copyright>Chris Martin</copyright>
        <managingEditor>chris@caliberweb.com</managingEditor>
        <generator>Subtext Version 0.0.0.0</generator>
        <image>
            <title>Chris Martin's Blog</title>
            <url>http://geekswithblogs.net/images/RSS2Image.gif</url>
            <link>http://geekswithblogs.net/cmartin/Default.aspx</link>
            <width>77</width>
            <height>60</height>
        </image>
        <item>
            <title>Common Cold</title>
            <category>General</category>
            <link>http://geekswithblogs.net/cmartin/archive/2007/01/05/102862.aspx</link>
            <description>&lt;blockquote&gt; &lt;p&gt;&lt;strong&gt;Duration&lt;/strong&gt;&lt;/p&gt;&lt;/blockquote&gt; &lt;blockquote&gt; &lt;p&gt;Cold symptoms usually appear 2 or 3 days after exposure to a source of infection. Most colds clear up within 1 week, but some last for as long as 2 weeks.&lt;/p&gt;&lt;/blockquote&gt; &lt;p&gt;Source: &lt;a href="http://www.kidshealth.org/parent/infections/common/cold.html"&gt;Common Cold&lt;/a&gt; &lt;/p&gt; &lt;p&gt;Hah. I should be so lucky!&lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;pre class="code"&gt;[&lt;span style="color: rgb(43,145,175)"&gt;TestFixture&lt;/span&gt;]
&lt;span style="color: rgb(0,0,255)"&gt;public&lt;/span&gt; &lt;span style="color: rgb(0,0,255)"&gt;class&lt;/span&gt; &lt;span style="color: rgb(43,145,175)"&gt;Program
&lt;/span&gt;{
    &lt;span style="color: rgb(0,0,255)"&gt;static&lt;/span&gt; &lt;span style="color: rgb(0,0,255)"&gt;void&lt;/span&gt; Main(&lt;span style="color: rgb(0,0,255)"&gt;string&lt;/span&gt;[] args){}

    [&lt;span style="color: rgb(43,145,175)"&gt;Test&lt;/span&gt;]
    &lt;span style="color: rgb(0,0,255)"&gt;public&lt;/span&gt; &lt;span style="color: rgb(0,0,255)"&gt;void&lt;/span&gt; ChrisDoesntWriteCodeWhenSick()
    {
        &lt;span style="color: rgb(43,145,175)"&gt;IDeveloper&lt;/span&gt; chris = &lt;span style="color: rgb(0,0,255)"&gt;new&lt;/span&gt; &lt;span style="color: rgb(43,145,175)"&gt;Chris&lt;/span&gt;(&lt;span style="color: rgb(0,0,255)"&gt;new&lt;/span&gt; &lt;span style="color: rgb(43,145,175)"&gt;InsaneCommonColdThatLastsForAMonth&lt;/span&gt;());
        &lt;span style="color: rgb(43,145,175)"&gt;Assert&lt;/span&gt;.IsFalse(chris.CanWriteCode());
    }
}

&lt;span style="color: rgb(0,0,255)"&gt;public&lt;/span&gt; &lt;span style="color: rgb(0,0,255)"&gt;interface&lt;/span&gt; &lt;span style="color: rgb(43,145,175)"&gt;IDeveloper
&lt;/span&gt;{
    &lt;span style="color: rgb(0,0,255)"&gt;bool&lt;/span&gt; CanWriteCode();
}

&lt;span style="color: rgb(0,0,255)"&gt;public&lt;/span&gt; &lt;span style="color: rgb(0,0,255)"&gt;class&lt;/span&gt; &lt;span style="color: rgb(43,145,175)"&gt;Chris&lt;/span&gt; : &lt;span style="color: rgb(43,145,175)"&gt;IDeveloper
&lt;/span&gt;{
    &lt;span style="color: rgb(0,0,255)"&gt;private&lt;/span&gt; &lt;span style="color: rgb(43,145,175)"&gt;IHealth&lt;/span&gt; currentHealth;

    &lt;span style="color: rgb(0,0,255)"&gt;public&lt;/span&gt; Chris(&lt;span style="color: rgb(43,145,175)"&gt;IHealth&lt;/span&gt; currentHealth)
    {
        &lt;span style="color: rgb(0,0,255)"&gt;this&lt;/span&gt;.currentHealth = currentHealth;
        currentHealth.AnnounceHealth();
    }

    &lt;span style="color: rgb(0,0,255)"&gt;public&lt;/span&gt; &lt;span style="color: rgb(0,0,255)"&gt;bool&lt;/span&gt; CanWriteCode()
    {
        &lt;span style="color: rgb(0,0,255)"&gt;return&lt;/span&gt; currentHealth.CanWorkToday;
    }
}

&lt;span style="color: rgb(0,0,255)"&gt;public&lt;/span&gt; &lt;span style="color: rgb(0,0,255)"&gt;interface&lt;/span&gt; &lt;span style="color: rgb(43,145,175)"&gt;IHealth
&lt;/span&gt;{
    &lt;span style="color: rgb(0,0,255)"&gt;bool&lt;/span&gt; CanWorkToday { &lt;span style="color: rgb(0,0,255)"&gt;get&lt;/span&gt;; }

    &lt;span style="color: rgb(0,0,255)"&gt;void&lt;/span&gt; AnnounceHealth();
}

&lt;span style="color: rgb(0,0,255)"&gt;public&lt;/span&gt; &lt;span style="color: rgb(0,0,255)"&gt;class&lt;/span&gt; &lt;span style="color: rgb(43,145,175)"&gt;InsaneCommonColdThatLastsForAMonth&lt;/span&gt; : &lt;span style="color: rgb(43,145,175)"&gt;IHealth
&lt;/span&gt;{
    &lt;span style="color: rgb(0,0,255)"&gt;public&lt;/span&gt; &lt;span style="color: rgb(0,0,255)"&gt;bool&lt;/span&gt; CanWorkToday
    {
        &lt;span style="color: rgb(0,0,255)"&gt;get&lt;/span&gt; { &lt;span style="color: rgb(0,0,255)"&gt;return&lt;/span&gt; &lt;span style="color: rgb(0,0,255)"&gt;false&lt;/span&gt;; }
    }

    &lt;span style="color: rgb(0,0,255)"&gt;public&lt;/span&gt; &lt;span style="color: rgb(0,0,255)"&gt;void&lt;/span&gt; AnnounceHealth()
    {
        &lt;span style="color: rgb(43,145,175)"&gt;Console&lt;/span&gt;.WriteLine(&lt;span style="color: rgb(163,21,21)"&gt;"CoughCoughCough..."&lt;/span&gt;);
        &lt;span style="color: rgb(43,145,175)"&gt;Console&lt;/span&gt;.WriteLine(&lt;span style="color: rgb(163,21,21)"&gt;"Ouch! My head!"&lt;/span&gt;);
    }
}&lt;/pre&gt;&lt;a href="http://11011.net/software/vspaste"&gt;&lt;/a&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=102862"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=102862" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/cmartin/aggbug/102862.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Chris Martin</dc:creator>
            <guid>http://geekswithblogs.net/cmartin/archive/2007/01/05/102862.aspx</guid>
            <pubDate>Fri, 05 Jan 2007 16:09:00 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/cmartin/comments/102862.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/cmartin/archive/2007/01/05/102862.aspx#feedback</comments>
            <slash:comments>2</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/cmartin/comments/commentRss/102862.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/cmartin/services/trackbacks/102862.aspx</trackback:ping>
        </item>
        <item>
            <title>5 Things About Me You Most Likely Don't Know Unless I Know You And If I Do Know You Then You Most Likely Do Already Know. Or Something...</title>
            <category>General</category>
            <link>http://geekswithblogs.net/cmartin/archive/2007/01/04/102814.aspx</link>
            <description>&lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;&lt;a title="Five Not So Well Known Items about Scott Cate" href="http://weblogs.asp.net/scottcate/archive/2007/01/04/five-not-so-well-known-items-about-scott-cate.aspx" target="_blank" rel="tag"&gt;Scott Cate&lt;/a&gt; tagged me today. Well. I guess I'm it.&lt;/p&gt; &lt;ol&gt; &lt;li&gt;&lt;strong&gt;Drag Racing:&lt;/strong&gt; One thing that I really enjoy besides .NET is drag racing. Last year I fell in love with the new Dodge Magnum and the whole Chrysler LX platform. These cars promised to bring back the muscle car wars that were happening in the late 60's. So, I had to buy one. And it had to&amp;nbsp;have&amp;nbsp;a &lt;a title="HEMI Engine" href="http://www.hemi.com/" target="_blank" rel="tag"&gt;HEMI.&lt;/a&gt; Boy was I in for a treat with this ride. It ran a 14.0 second 1/4 mile bone stock! Which is nothing to sneeze at coming from a 4300 pound station wagon. :) I've since put some more money into the car and am&amp;nbsp;turning mid 13-second passes. This spring the car will see a&amp;nbsp;beefed-up bottom end and a big turbo.&lt;a title="12-07-06 001" href="http://www.flickr.com/photos/72514665@N00/316687063/"&gt;&lt;img alt="12-07-06 001" src="http://static.flickr.com/108/316687063_b285ccb4d6.jpg" border="0"&gt;&lt;/a&gt;&lt;br /&gt;  &lt;li&gt;&lt;strong&gt;Music: &lt;/strong&gt;Straight out of high school, I spent a large part of my life playing,&amp;nbsp;touring, and recording&amp;nbsp;music with various hardcore bands. &lt;a href="http://factoryd-usa.com/images/c548139df2ca_F68D/image01.png" atomicselection="true"&gt;&lt;img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="234" src="http://factoryd-usa.com/images/c548139df2ca_F68D/image0.png" width="240" border="0"&gt;&lt;/a&gt;I've seen the country many times for virtually free and got to meet a bunch of different types of people. While I still play with bands, most people aren't able to pick up and take a 2-3 month vacation to go on tour. So, the bands stay local, for the most part. Out of anything I've ever done in my life, I truly miss this the most.  &lt;li&gt;&lt;strong&gt;Business&lt;/strong&gt;. I own a small aftermarket parts online store. It's something that I need to put a bit more time into.&amp;nbsp; &lt;a href="http://www.factoryd-usa.com" target="_new" atomicselection="true"&gt;&lt;img alt="Factory D" src="http://www.factoryd-usa.com/factoryd_banner.jpg"&gt;&lt;/a&gt;Another thing I'm constantly thinking of, is&amp;nbsp;buying absentee owned businesses and rental properties.  &lt;li&gt;&lt;strong&gt;Skateboarding&lt;/strong&gt;. I've been a skateboarder since I was 10. Not as much now. But, I still enjoy to go skate every once in awhile.  &lt;li&gt;&lt;strong&gt;Change&lt;/strong&gt;. Coding is one of my favorite things to do. There&amp;nbsp;are&amp;nbsp;few things&amp;nbsp;better than the feeling of seeing a bunch code that your wrote do something useful or cool.&amp;nbsp;That being said,&amp;nbsp;I'm getting really tired of sitting behind of a computer all day long. I, badly, need&amp;nbsp;a career&amp;nbsp;change and&amp;nbsp;make coding a hobby again.&lt;/li&gt;&lt;/ol&gt; &lt;p&gt;Well. That's not it! There is a lot more to me than those five things. I just couldn't think of anything more interesting. :)&lt;/p&gt; &lt;p&gt;And since I don't really follow many blogs anymore, I taking my ball and going home. I don't have anyone in mind to tag. ;)&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=102814"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=102814" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/cmartin/aggbug/102814.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Chris Martin</dc:creator>
            <guid>http://geekswithblogs.net/cmartin/archive/2007/01/04/102814.aspx</guid>
            <pubDate>Thu, 04 Jan 2007 23:14:00 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/cmartin/comments/102814.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/cmartin/archive/2007/01/04/102814.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/cmartin/comments/commentRss/102814.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/cmartin/services/trackbacks/102814.aspx</trackback:ping>
        </item>
        <item>
            <title>Help KbAlertz Give XBox360s To Childrens Charities</title>
            <category>General</category>
            <link>http://geekswithblogs.net/cmartin/archive/2006/03/10/71964.aspx</link>
            <description>My friend &lt;a href="http://weblogs.asp.net/scottcate"&gt;Scott Cate&lt;/a&gt; just told me about &lt;a href="http://www.kbalertz.com/XBOX.aspx"&gt;this&lt;/a&gt;.&lt;br&gt;&lt;br&gt;From the article:&lt;br&gt;&lt;br&gt;"Rather then keep a whole room 
				full of XBOX 360's, we think a better idea is to give them to childrens 
				charities. We'll start with the &lt;a href="http://www.childcrisis.org/"&gt;Child Crisis 
					Center&lt;/a&gt; and the &lt;a href="http://www.phxchildrens.com/"&gt;Phoenix Childrens 
					Hospital&lt;/a&gt;."&lt;br&gt;&lt;br&gt;If you haven't signed up with &lt;a href="http://www.kbalertz.com/Sponsor.aspx?id=54"&gt;textpayme&lt;/a&gt; yet please do so if only for this cause.&lt;br&gt;&lt;br&gt;Sign up with &lt;a href="http://www.kbalertz.com/Sponsor.aspx?id=54"&gt;this link&lt;/a&gt;.&lt;br&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=71964"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=71964" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/cmartin/aggbug/71964.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Chris Martin</dc:creator>
            <guid>http://geekswithblogs.net/cmartin/archive/2006/03/10/71964.aspx</guid>
            <pubDate>Fri, 10 Mar 2006 14:26:00 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/cmartin/comments/71964.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/cmartin/archive/2006/03/10/71964.aspx#feedback</comments>
            <slash:comments>1</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/cmartin/comments/commentRss/71964.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/cmartin/services/trackbacks/71964.aspx</trackback:ping>
        </item>
        <item>
            <title>Serializing A String Within a CDATA Element (.NET 1.1)</title>
            <category>.NET</category>
            <link>http://geekswithblogs.net/cmartin/archive/2005/11/30/61705.aspx</link>
            <description>&lt;p&gt;&lt;em&gt;Apparently .NET 2.0 does this out of the box but, I don&amp;rsquo;t get to play with it for awhile so&amp;hellip;.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Today I had the need to serialize some error messages in CDATA elements. Quickly, I realized that XmlSerializer doesn&amp;rsquo;t support this out of the box. After a &lt;em&gt;really&lt;/em&gt; quick googlin&amp;rsquo; session, I had my solution. And since I&amp;rsquo;m nice, I&amp;rsquo;ll share it with y&amp;rsquo;all.&lt;/p&gt;
&lt;p&gt;Say you have a class called ErrorMessage that has a string to be serialized:&lt;/p&gt;
&lt;p&gt;[&lt;font color="#808000"&gt;Serializable&lt;/font&gt;]&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff"&gt;public&lt;/font&gt; &lt;font color="#0000ff"&gt;class&lt;/font&gt; &lt;font color="#808000"&gt;ErrorMessage&lt;/p&gt;&lt;/font&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff"&gt;private&lt;/font&gt; &lt;font color="#808000"&gt;string &lt;/font&gt;&lt;font color="#808000"&gt;message&lt;/font&gt;;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;hellip;.&lt;/p&gt;
&lt;p&gt;[&lt;font color="#808000"&gt;XmlElement&lt;/font&gt;("message")]&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff"&gt;public&lt;/font&gt; &lt;font color="#808000"&gt;string &lt;/font&gt;&lt;font color="#808000"&gt;Message&lt;/p&gt;&lt;/font&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff"&gt;get&lt;/font&gt; { &lt;font color="#0000ff"&gt;return&lt;/font&gt; &lt;font color="#808000"&gt;message&lt;/font&gt;; }&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff"&gt;set&lt;/font&gt; { &lt;font color="#808000"&gt;message&lt;/font&gt; = &lt;font color="#0000ff"&gt;value&lt;/font&gt;; }&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;&amp;hellip;.&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;&lt;font color="#808000"&gt;
&lt;p&gt;&lt;font color="#000000"&gt;If you want to inject the message into a CDATA element do the following:&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#000000"&gt;Create a class to hold your CDATA string and implement IXmlSerializable.&lt;/font&gt;&lt;/p&gt;&lt;font color="#000000"&gt;
&lt;p&gt;&lt;font color="#0000ff"&gt;public&lt;/font&gt; &lt;font color="#0000ff"&gt;class&lt;/font&gt; &lt;font color="#808000"&gt;CDATA&lt;/font&gt; : &lt;font color="#808000"&gt;IXmlSerializable&lt;/p&gt;&lt;/font&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff"&gt;private&lt;/font&gt; &lt;font color="#0000ff"&gt;string&lt;/font&gt; &lt;font color="#808000"&gt;text&lt;/font&gt;;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff"&gt;public&lt;/font&gt; &lt;font color="#808000"&gt;CDATA&lt;/font&gt;()&lt;/p&gt;
&lt;p&gt;{}&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff"&gt;public&lt;/font&gt; &lt;font color="#808000"&gt;CDATA&lt;/font&gt;(&lt;font color="#0000ff"&gt;string&lt;/font&gt; &lt;font color="#808000"&gt;text&lt;/font&gt;)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff"&gt;this&lt;/font&gt;.&lt;font color="#808000"&gt;text&lt;/font&gt; = &lt;font color="#808000"&gt;text&lt;/font&gt;;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff"&gt;public&lt;/font&gt; &lt;font color="#0000ff"&gt;string&lt;/font&gt; &lt;font color="#808000"&gt;Text&lt;/p&gt;&lt;/font&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff"&gt;get&lt;/font&gt; { &lt;font color="#0000ff"&gt;return&lt;/font&gt; &lt;font color="#808000"&gt;text&lt;/font&gt;; }&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;&lt;font color="#808000"&gt;XmlSchema&lt;/font&gt; &lt;font color="#808000"&gt;IXmlSerializable&lt;/font&gt;.&lt;font color="#808000"&gt;GetSchema&lt;/font&gt;()&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff"&gt;return&lt;/font&gt; &lt;font color="#0000ff"&gt;null&lt;/font&gt;;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff"&gt;void&lt;/font&gt; &lt;font color="#808000"&gt;IXmlSerializable&lt;/font&gt;.&lt;font color="#808000"&gt;ReadXml&lt;/font&gt;(&lt;font color="#808000"&gt;XmlReader&lt;/font&gt; &lt;font color="#808000"&gt;reader&lt;/font&gt;)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff"&gt;this&lt;/font&gt;.&lt;font color="#808000"&gt;text&lt;/font&gt; = &lt;font color="#808000"&gt;reader&lt;/font&gt;.&lt;font color="#808000"&gt;ReadString&lt;/font&gt;();&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff"&gt;void&lt;/font&gt; &lt;font color="#808000"&gt;IXmlSerializable&lt;/font&gt;.&lt;font color="#808000"&gt;WriteXml&lt;/font&gt;(&lt;font color="#808000"&gt;XmlWriter&lt;/font&gt; &lt;font color="#808000"&gt;writer&lt;/font&gt;)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;&lt;font color="#808000"&gt;writer&lt;/font&gt;.&lt;font color="#808000"&gt;WriteCData&lt;/font&gt;(&lt;font color="#0000ff"&gt;this&lt;/font&gt;.&lt;font color="#808000"&gt;text&lt;/font&gt;);&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;And change your original ErrorMessage class to&lt;/p&gt;
&lt;p&gt;[&lt;font color="#808000"&gt;Serializable&lt;/font&gt;]&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff"&gt;public&lt;/font&gt; &lt;font color="#0000ff"&gt;class&lt;/font&gt; &lt;font color="#808000"&gt;ErrorMessage&lt;/p&gt;&lt;/font&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff"&gt;private&lt;/font&gt; &lt;font color="#808000"&gt;CDATA&lt;/font&gt;&lt;font color="#000000"&gt; &lt;/font&gt;&lt;font color="#808000"&gt;message&lt;/font&gt;;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;hellip;.&lt;/p&gt;
&lt;p&gt;[&lt;font color="#808000"&gt;XmlElement&lt;/font&gt;("message", &lt;font color="#808000"&gt;Type&lt;/font&gt;=&lt;font color="#0000ff"&gt;typeof&lt;/font&gt;(&lt;font color="#808000"&gt;CDATA&lt;/font&gt;))]&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff"&gt;public&lt;/font&gt; &lt;font color="#808000"&gt;CDATA&lt;/font&gt; &lt;font color="#808000"&gt;Message&lt;/p&gt;&lt;/font&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff"&gt;get&lt;/font&gt; { &lt;font color="#0000ff"&gt;return&lt;/font&gt; &lt;font color="#808000"&gt;message&lt;/font&gt;; }&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff"&gt;set&lt;/font&gt; { &lt;font color="#808000"&gt;message&lt;/font&gt; = &lt;font color="#0000ff"&gt;value&lt;/font&gt;; }&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;&amp;hellip;.&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;Nice and simple.&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=61705"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=61705" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/cmartin/aggbug/61705.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Chris Martin</dc:creator>
            <guid>http://geekswithblogs.net/cmartin/archive/2005/11/30/61705.aspx</guid>
            <pubDate>Wed, 30 Nov 2005 19:51:00 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/cmartin/comments/61705.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/cmartin/archive/2005/11/30/61705.aspx#feedback</comments>
            <slash:comments>11</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/cmartin/comments/commentRss/61705.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/cmartin/services/trackbacks/61705.aspx</trackback:ping>
        </item>
        <item>
            <title>Desktop Blogging</title>
            <category>General</category>
            <link>http://geekswithblogs.net/cmartin/archive/2005/11/29/61601.aspx</link>
            <description>If you could decode my last post without your head throbbing, well...I'm real happy for ya ;)

That post was from w.bloggar 4.0 and I hated it.

What desktop software are .TEXT bloggers using to post from the desktop? Are you able to choose categories? What about code formatting?

Cheers...&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=61601"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=61601" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/cmartin/aggbug/61601.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Chris Martin</dc:creator>
            <guid>http://geekswithblogs.net/cmartin/archive/2005/11/29/61601.aspx</guid>
            <pubDate>Tue, 29 Nov 2005 17:56:00 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/cmartin/comments/61601.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/cmartin/archive/2005/11/29/61601.aspx#feedback</comments>
            <slash:comments>6</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/cmartin/comments/commentRss/61601.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/cmartin/services/trackbacks/61601.aspx</trackback:ping>
        </item>
        <item>
            <title>Visual Studio 2005 Code Snippets?</title>
            <category>.NET</category>
            <link>http://geekswithblogs.net/cmartin/archive/2005/11/29/61600.aspx</link>
            <description>So Visual Studio is finally catching up to the tools that I've been using for years. I can't really blame MS for only coming out with these features now. This is a huge company that doesn't release their products every 3 months. What I can do is be a little angry that while they did us a favor by integrating some things into the IDE, they just did it a little sub-par. Now, if anything I'm about to write is wrong, I'm sure some gracious soul will correct me and I'll give my appologies. Onto the meat...

OK. Visual Studio 5005 gives us a great, nifty little feature called "Code Snippets". Basically they are code templates that can generate a bunch of boring code with the least amount of work. Cool. But, the technology doesn't seem to want to give me any control of said code. Take the following very simplistic and reasonable example:

I want the snippet to create this code (I'm serious ;))

&lt;br/&gt;
&lt;font color="#0000FF" size=3&gt;private string &lt;/font&gt;&lt;font color="#808000" size=3&gt;title&lt;/font&gt;&lt;font size=3&gt;;&lt;/font&gt;
&lt;br/&gt;
&lt;br/&gt;
&lt;font color="#0000FF" size=3&gt;public string &lt;/font&gt;&lt;font color="#808000" size=3&gt;Title&lt;/font&gt;&lt;br/&gt;
&lt;font size=3&gt;{&lt;/font&gt;
&lt;br/&gt;
&lt;font color="#0000FF" size=3&gt;get &lt;/font&gt;&lt;font size=3&gt;{ &lt;/font&gt;&lt;font color="#0000FF" size=3&gt;return &lt;/font&gt;&lt;font color="#808000" size=3&gt;title&lt;/font&gt;&lt;font size=3&gt;; }&lt;/font&gt;
&lt;br/&gt;
&lt;font color="#0000FF" size=3&gt;set &lt;/font&gt;&lt;font size=3&gt;{ &lt;/font&gt;&lt;font color="#808000" size=3&gt;title&lt;/font&gt;&lt;font size=3&gt; = &lt;/font&gt;&lt;font color="#0000FF" size=3&gt;value&lt;/font&gt;&lt;font size=3&gt;; }&lt;/font&gt;
&lt;br/&gt;
&lt;font size=3&gt; }&lt;/font&gt;&lt;br/&gt;&lt;br/&gt;

So I took the plunge and created this snippet (I'm just showing the CDATA part not the whole XML file.):

&lt;font face="Courier New" size=2&gt;        public $type$ $variableName$;&lt;/font&gt;

&lt;font face="Courier New" size=2&gt;        public $type$ $variableName$
{
get { return $variableName$; }
set { $variableName$ = value; }
}&lt;/font&gt;

My problem with this is that I can't find a way to capitalize the property name. I can't find a way to do it! With QuickCode (RIP for me) or ReSharper this a very easy task. I've got to be missing something here. Who's gonna show me the MS light? 

Cheers...&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=61600"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=61600" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/cmartin/aggbug/61600.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Chris Martin</dc:creator>
            <guid>http://geekswithblogs.net/cmartin/archive/2005/11/29/61600.aspx</guid>
            <pubDate>Tue, 29 Nov 2005 17:46:00 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/cmartin/comments/61600.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/cmartin/archive/2005/11/29/61600.aspx#feedback</comments>
            <wfw:commentRss>http://geekswithblogs.net/cmartin/comments/commentRss/61600.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/cmartin/services/trackbacks/61600.aspx</trackback:ping>
        </item>
        <item>
            <title>To LLBLGen or not?</title>
            <category>.NET</category>
            <link>http://geekswithblogs.net/cmartin/archive/2003/12/20/1048.aspx</link>
            <description>&lt;table width="100%"&gt;&lt;tr&gt;&lt;td&gt;&lt;div align="left" style="font-family: Verdana, Arial, sans-serif;color: black;font-size:10px;"&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif;color: black;font-size:10px;font-weight: bold"&gt;To LLBLGen or not?&lt;/div&gt;&lt;br /&gt;I guess this is my introduction post. My name is Chris Martin (as you can see :)) and I'm a .NET developer with about 6 years experience in mostly Windows technology. I used to dabble in the *nix world a little bit. But, found it too exhausting. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This is also my first attempt at blogging. I look forward to being a part of this comunity and hope that I can provide some help to you guys sometimes.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now...Onto the meat of this post.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I'm going to use the new LLBLGen Pro on our next project. So far, I can't see any downsides to this at all. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Does anyone have any positive or negative LLBLGen Pro experiences for a web application that they would like to share?&lt;br /&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=1048"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=1048" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/cmartin/aggbug/1048.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Chris Martin</dc:creator>
            <guid>http://geekswithblogs.net/cmartin/archive/2003/12/20/1048.aspx</guid>
            <pubDate>Sat, 20 Dec 2003 17:16:00 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/cmartin/comments/1048.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/cmartin/archive/2003/12/20/1048.aspx#feedback</comments>
            <slash:comments>22</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/cmartin/comments/commentRss/1048.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/cmartin/services/trackbacks/1048.aspx</trackback:ping>
        </item>
    </channel>
</rss>