<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Trench Code</title>
	<atom:link href="http://trenchcode.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://trenchcode.wordpress.com</link>
	<description>Coder by day, Gamer by night.</description>
	<lastBuildDate>Thu, 17 Dec 2009 15:05:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='trenchcode.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Trench Code</title>
		<link>http://trenchcode.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://trenchcode.wordpress.com/osd.xml" title="Trench Code" />
	<atom:link rel='hub' href='http://trenchcode.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Welcome</title>
		<link>http://trenchcode.wordpress.com/2009/12/10/welcome/</link>
		<comments>http://trenchcode.wordpress.com/2009/12/10/welcome/#comments</comments>
		<pubDate>Thu, 10 Dec 2009 15:41:32 +0000</pubDate>
		<dc:creator>melarian</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://trenchcode.wordpress.com/2009/12/10/welcome/</guid>
		<description><![CDATA[Hi and welcome. This blog is the technical side of of a combined blog I used to keep called Life in the Trenches. I decided to go ahead and split out the content since they focus was lacking. Sure combining software development and MMORPGs is not unnatural; I know a lot of coders that are [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=trenchcode.wordpress.com&amp;blog=10896736&amp;post=3&amp;subd=trenchcode&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hi and welcome.  This blog is the technical side of of a combined blog I used to keep called Life in the Trenches.  I decided to go ahead and split out the content since they focus was lacking.  Sure combining software development and MMORPGs is not unnatural; I know a lot of coders that are gamers, or is that a lot of gamers that are coders?</p>
<p>At any rate I’ll be transferring the ‘good’ posts from my old archive to get he ball rolling.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/trenchcode.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/trenchcode.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/trenchcode.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/trenchcode.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/trenchcode.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/trenchcode.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/trenchcode.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/trenchcode.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/trenchcode.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/trenchcode.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/trenchcode.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/trenchcode.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/trenchcode.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/trenchcode.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=trenchcode.wordpress.com&amp;blog=10896736&amp;post=3&amp;subd=trenchcode&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://trenchcode.wordpress.com/2009/12/10/welcome/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e2bf73af13c419c57baee3318c02b6bf?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">melarian</media:title>
		</media:content>
	</item>
		<item>
		<title>Beginners JQuery Video Series</title>
		<link>http://trenchcode.wordpress.com/2009/08/21/beginners-jquery-video-series/</link>
		<comments>http://trenchcode.wordpress.com/2009/08/21/beginners-jquery-video-series/#comments</comments>
		<pubDate>Fri, 21 Aug 2009 09:49:14 +0000</pubDate>
		<dc:creator>melarian</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[JQuery]]></category>

		<guid isPermaLink="false">http://trenchcode.wordpress.com/2009/08/21/beginners-jquery-video-series/</guid>
		<description><![CDATA[I ran into a video tutorial for learning JQuery over at ThemeForest.net I&#8217;m one of the people they talked about; I know its out there, I know it uses css selectors, and I know that it does a lot to hide some of the javascript pain. So I&#8217;m finally checking it out in more detail. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=trenchcode.wordpress.com&amp;blog=10896736&amp;post=6&amp;subd=trenchcode&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I ran into a video tutorial for learning <span style="text-decoration:underline;"><a href="http://jquery.com/">JQuery</a></span> over at <span style="text-decoration:underline;"><a href="http://en.support.wordpress.com/affiliate-links/">ThemeForest.net</a></span><br />
I&#8217;m one of the people they talked about; I know its out there, I know it uses css selectors, and I know that it does a lot to hide some of the javascript pain. So I&#8217;m finally checking it out in more detail. Even though my preferred area is web services and other business layer on down I do still have to do some gui work from time to time.</p>
<br /> Tagged: Development, JQuery <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/trenchcode.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/trenchcode.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/trenchcode.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/trenchcode.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/trenchcode.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/trenchcode.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/trenchcode.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/trenchcode.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/trenchcode.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/trenchcode.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/trenchcode.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/trenchcode.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/trenchcode.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/trenchcode.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=trenchcode.wordpress.com&amp;blog=10896736&amp;post=6&amp;subd=trenchcode&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://trenchcode.wordpress.com/2009/08/21/beginners-jquery-video-series/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e2bf73af13c419c57baee3318c02b6bf?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">melarian</media:title>
		</media:content>
	</item>
		<item>
		<title>WCF CreateChannel and no App.config</title>
		<link>http://trenchcode.wordpress.com/2009/08/14/wcf-createchannel-and-no-app-config/</link>
		<comments>http://trenchcode.wordpress.com/2009/08/14/wcf-createchannel-and-no-app-config/#comments</comments>
		<pubDate>Fri, 14 Aug 2009 11:09:04 +0000</pubDate>
		<dc:creator>melarian</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://trenchcode.wordpress.com/2009/08/14/wcf-createchannel-and-no-app-config/</guid>
		<description><![CDATA[Alright; so I was working on a new project and I wanted to create a Windows Service that would host a WCF Service. The basic idea is that the Windows Service will use the WCF Service to do it&#8217;s heavy lifting on a schedule. The WCF Service will also be called from a management web [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=trenchcode.wordpress.com&amp;blog=10896736&amp;post=7&amp;subd=trenchcode&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Alright; so I was working on a new project and I wanted to create a Windows Service that would host a WCF Service. The basic idea is that the Windows Service will use the WCF Service to do it&#8217;s heavy lifting on a schedule. The WCF Service will also be called from a management web site later on. In the past I&#8217;ve always wanted to reduce the amount of coding and configuration required to call one of these services.</p>
<p>So.. what did i come up with? The following lines create the service host in my Windows Service:</p>
<p style="text-align:left;padding-left:30px;">_wcfAsnService = <span style="color:#397c19;"><strong>new</strong></span> ServiceHost(<span style="color:#397c19;"><strong>typeof</strong></span>(Edi.Wcf.AsnService));<br />
_wcfAsnService.AddServiceEndpoint(<span style="color:#397c19;"><strong>typeof</strong></span>(IAsnService), <span style="color:#397c19;"><strong>new</strong></span> NetTcpBinding(), Settings.Default.WcfAsnServer);<br />
_wcfAsnService.Open();</p>
<p style="text-align:left;">The setting for that last parameter is defined as: net.tcp://localhost:8000</p>
<p>And I created this class to use for managing the life cycle of the client proxy:<br />
<span style="color:#397c19;"><strong>using </strong></span><span style="color:#0018f5;">System</span>;<br />
<span style="color:#397c19;"><strong>using </strong></span><span style="color:#0018f5;">System.ServiceModel</span>;<br />
<span style="color:#397c19;"><strong>namespace </strong></span><span style="color:#0018f5;">EDI.AsnService</span></p>
<p><span style="color:#397c19;"><strong>{<br />
<span style="color:#000000;font-weight:normal;"><span style="color:#397c19;"><strong>public class </strong></span><span style="color:#0018f5;">ServiceProxy</span> : IDisposable<br />
<strong>{</strong></span></strong></span></p>
<p><span style="color:#397c19;"><strong>private readonly </strong></span> T _endPoint;<br />
<span style="color:#397c19;"><strong>private readonly</strong></span> ICommunicationObject _proxy;</p>
<p><span style="color:#397c19;"><strong>public </strong></span><span style="color:#0018f5;">ServiceProxy</span>(<span style="color:#981e41;">string</span> endPointAddress)</p>
<p><span style="color:#397c19;"><strong>{<br />
</strong></span><span style="color:#527e7f;"><em>// Create a service client proxy<br />
<span style="color:#000000;font-style:normal;">_endPoint = ChannelFactory.CreateChannel(<span style="color:#397c19;"><strong>new</strong></span> NetTcpBinding(), <span style="color:#397c19;"><strong>new</strong></span> EndpointAddress(endPointAddress));</span></em></span></p>
<p><span style="color:#527e7f;"><em>// Create a CommunicationObject for state and end point closure<br />
<span style="color:#000000;font-style:normal;">_proxy = _endPoint <span style="color:#397c19;"><strong>as</strong></span> ICommunicationObject;</span></em></span></p>
<p><span style="color:#397c19;"><strong>}</strong></span></p>
<p><span style="color:#397c19;"><strong>public void </strong></span><span style="color:#0018f5;">Dispose</span>()</p>
<p><span style="color:#397c19;"><strong>{<br />
</strong></span><span style="color:#527e7f;"><em>// Close down the communication channel<br />
</em></span><span style="color:#397c19;"><strong>if</strong></span> (_proxy != <span style="color:#397c19;"><strong>null</strong></span>)<br />
_proxy.Close();<br />
<strong>}</strong></p>
<p><span style="color:#527e7f;"><em>///<br />
/// Returns the state object from the communication end point<br />
///<br />
</em></span><span style="color:#397c19;"><strong>public</strong></span> CommunicationState State<br />
<strong>{<br />
<span style="color:#000000;font-weight:normal;"><span style="color:#397c19;"><strong> get { return</strong></span> _proxy.State; <span style="color:#397c19;"><strong>}<br />
}</strong></span></span></strong></p>
<p><span style="color:#527e7f;">///</span></p>
<p><span style="color:#527e7f;">/// Returns the Endpoint where methods can be called</span></p>
<p><span style="color:#527e7f;">///</span></p>
<p><span style="color:#527e7f;"><em></em></span><span style="color:#397c19;"><strong>public</strong></span> T Client <span style="color:#397c19;"><strong>{ get { return</strong></span> _endPoint; <span style="color:#397c19;"><strong>} }</strong></span></p>
<p><span style="color:#397c19;"><strong>}</strong></span></p>
<p><span style="color:#397c19;"><strong>}</strong></span></p>
<p>Pretty simple. All you have to do is pass in the contract as the type and the proxy is created on the fly. Inside my method that executes the service client I have the following code to invoke the service:<br />
<span style="color:#397c19;"><strong></strong></span></p>
<p><span style="color:#397c19;"><strong>using</strong></span> (ServiceProxy service = <span style="color:#397c19;"><strong>new</strong></span> ServiceProxy(Settings.Default.WcfAsnServer))<br />
<strong>{</strong></p>
<p>eventLog.WriteEntry(<span style="color:#a22f27;">&#8220;Processing Start&#8221;</span>);</p>
<p>eventLog.WriteEntry(service.Client.ExtractFromVisual().Message);</p>
<p>eventLog.WriteEntry(service.Client.UpdateGentran().Message);</p>
<p>eventLog.WriteEntry(<span style="color:#a22f27;">&#8220;Processing Completed&#8221;</span>);</p>
<p><span style="color:#397c19;"><strong>}</strong></span></p>
<p>The end result is that I don&#8217;t have to worry about configuring bindings in the config file. In fact the only thing I have in the config file in the endpoint address and port. I think this is much lighter weight and reduces some of the problems I&#8217;ve run into in the past with updating service references and duplication of the bindings in the config file.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/trenchcode.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/trenchcode.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/trenchcode.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/trenchcode.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/trenchcode.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/trenchcode.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/trenchcode.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/trenchcode.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/trenchcode.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/trenchcode.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/trenchcode.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/trenchcode.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/trenchcode.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/trenchcode.wordpress.com/7/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=trenchcode.wordpress.com&amp;blog=10896736&amp;post=7&amp;subd=trenchcode&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://trenchcode.wordpress.com/2009/08/14/wcf-createchannel-and-no-app-config/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e2bf73af13c419c57baee3318c02b6bf?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">melarian</media:title>
		</media:content>
	</item>
		<item>
		<title>Little Gems &#8211; Balsamiq Mockups</title>
		<link>http://trenchcode.wordpress.com/2009/05/20/little-gems-balsamiq-mockups/</link>
		<comments>http://trenchcode.wordpress.com/2009/05/20/little-gems-balsamiq-mockups/#comments</comments>
		<pubDate>Wed, 20 May 2009 08:19:14 +0000</pubDate>
		<dc:creator>melarian</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://trenchcode.wordpress.com/2009/05/20/little-gems-balsamiq-mockups/</guid>
		<description><![CDATA[If you are like me you tend to download a lot of software from the net. Open Source, Demos, Free/Share ware and the list goes on. I happened onto a little gem that is starting to make my life easier. Here is the problem: I write software for a living.. period. One of the hardest [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=trenchcode.wordpress.com&amp;blog=10896736&amp;post=8&amp;subd=trenchcode&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you are like me you tend to download a lot of software from the net. Open Source, Demos, Free/Share ware and the list goes on. I happened onto a little gem that is starting to make my life easier.<br />
Here is the problem:<br />
I write software for a living.. period. One of the hardest things is trying to come up with a solid user interface with your clients. Sure I&#8217;ve used things like Visio and PowerPoint in the past with decent results. There is a tendency with some clients to not make the logical leap that it takes time to actually implement the screen design. What they see is rapid layout and assume thats as hard as it gets.<br />
Enter Balsamiq Mockups. How is this application any different? Well first off the mockups look like they are hand drawn; something you might come up with if you sat down with your client and grabbed a stack paper and a pen.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/trenchcode.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/trenchcode.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/trenchcode.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/trenchcode.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/trenchcode.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/trenchcode.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/trenchcode.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/trenchcode.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/trenchcode.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/trenchcode.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/trenchcode.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/trenchcode.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/trenchcode.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/trenchcode.wordpress.com/8/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=trenchcode.wordpress.com&amp;blog=10896736&amp;post=8&amp;subd=trenchcode&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://trenchcode.wordpress.com/2009/05/20/little-gems-balsamiq-mockups/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e2bf73af13c419c57baee3318c02b6bf?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">melarian</media:title>
		</media:content>
	</item>
		<item>
		<title>SilverLight Debugging</title>
		<link>http://trenchcode.wordpress.com/2008/12/08/silverlight-debugging/</link>
		<comments>http://trenchcode.wordpress.com/2008/12/08/silverlight-debugging/#comments</comments>
		<pubDate>Mon, 08 Dec 2008 08:16:00 +0000</pubDate>
		<dc:creator>melarian</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://trenchcode.wordpress.com/2008/12/08/silverlight-debugging/</guid>
		<description><![CDATA[I was working through a tutorial for SilverLight over the weekend and things were going just fine until the debugger just didn&#8217;t seem to want to hit my break points. Oddly they were working fine but I did see on the net that some people had problems a while back with this. In those cases [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=trenchcode.wordpress.com&amp;blog=10896736&amp;post=9&amp;subd=trenchcode&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I was working through a tutorial for SilverLight over the weekend and things were going just fine until the debugger just didn&#8217;t seem to want to hit my break points. Oddly they were working fine but I did see on the net that some people had problems a while back with this. In those cases there is a check box added to the project properties where you select ASP.NET debugging that was getting turned off. For those the solution had been moved.. this is not the case for me of course so maybe there is another issue there someplace.<br />
Has anyone run into this situation? I guess I can try the old standby of making a new project to see if it still fails to hit the break points or try not hosting in a web page.<br />
<strong>Update</strong>: I found out that using a browser other then IE will cause this to happen. Sure enough.. after I reset IE as the default browser then the debugger hit my break points once again. The odd thing is it was working just fine for a while.. go figure.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/trenchcode.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/trenchcode.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/trenchcode.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/trenchcode.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/trenchcode.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/trenchcode.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/trenchcode.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/trenchcode.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/trenchcode.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/trenchcode.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/trenchcode.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/trenchcode.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/trenchcode.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/trenchcode.wordpress.com/9/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=trenchcode.wordpress.com&amp;blog=10896736&amp;post=9&amp;subd=trenchcode&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://trenchcode.wordpress.com/2008/12/08/silverlight-debugging/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e2bf73af13c419c57baee3318c02b6bf?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">melarian</media:title>
		</media:content>
	</item>
		<item>
		<title>Reading Excel Files</title>
		<link>http://trenchcode.wordpress.com/2008/09/11/reading-excel-files/</link>
		<comments>http://trenchcode.wordpress.com/2008/09/11/reading-excel-files/#comments</comments>
		<pubDate>Thu, 11 Sep 2008 10:29:51 +0000</pubDate>
		<dc:creator>melarian</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://trenchcode.wordpress.com/2008/09/11/reading-excel-files/</guid>
		<description><![CDATA[I&#8217;ve run into the problem a few times of needing to convert rows in an Excel file into an object for some kind of processing. I found an example that was pretty trim in what it was doing so I ended up using it as a model for a new template class.   The basic [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=trenchcode.wordpress.com&amp;blog=10896736&amp;post=5&amp;subd=trenchcode&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve run into the problem a few times of needing to convert rows in an Excel file into an object for some kind of processing. I found an example that was pretty trim in what it was doing so I ended up using it as a model for a new template class.<br />
 <br />
The basic idea is that you create a new class and provide the overrides for converting a row into an object and after the main method returns you end up with a Collection where T is the type of Data Transfer Object (DTO) that your application can use.<br />
 <br />
One more modification that I&#8217;m planning on adding is to stream the DTOs to a method instead of returning a collection. Calling a processor will allow for a large number of rows to be processed without storing the DTOs in a collection and thus not incurring the memory overhead.<br />
 <br />
Here is the code so far: [more]<br />
 <br />
   <span style="color:rgb(96,96,96);">1:</span><span style="color:rgb(0,24,245);">using</span> System;<br />
   <span style="color:rgb(96,96,96);background-color:rgb(244,244,244);">2:</span><span style="color:rgb(0,24,245);background-color:rgb(244,244,244);">using</span> <span style="background-color:rgb(244,244,244);">System.Collections.ObjectModel;<br />
</span>   <span style="color:rgb(96,96,96);">3:</span><span style="color:rgb(0,24,245);">using</span> System.Data.OleDb;<br />
   <span style="color:rgb(96,96,96);background-color:rgb(244,244,244);">4:</span><span style="color:rgb(0,24,245);background-color:rgb(244,244,244);">using</span> <span style="background-color:rgb(244,244,244);">System.IO;<br />
</span>   <span style="color:rgb(96,96,96);">5:</span> <br />
   <span style="color:rgb(96,96,96);background-color:rgb(244,244,244);">6:</span><span style="color:rgb(0,24,245);background-color:rgb(244,244,244);">namespace</span> <span style="background-color:rgb(244,244,244);">SomeNameSpace<br />
</span>   <span style="color:rgb(96,96,96);">7:</span> {<br />
   <span style="color:rgb(96,96,96);background-color:rgb(244,244,244);">8:</span><span style="color:rgb(0,24,245);background-color:rgb(244,244,244);">publicclass</span> <span style="background-color:rgb(244,244,244);">DigestExcel<br />
</span>   <span style="color:rgb(96,96,96);">9:</span>     {<br />
  <span style="color:rgb(96,96,96);background-color:rgb(244,244,244);">10:</span><span style="color:rgb(57,124,25);background-color:rgb(244,244,244);">/// </span><br />
  <span style="color:rgb(96,96,96);">11:</span><span style="color:rgb(57,124,25);">/// True if exceptions should be thrown during processing</span><br />
  <span style="color:rgb(96,96,96);background-color:rgb(244,244,244);">12:</span><span style="color:rgb(57,124,25);background-color:rgb(244,244,244);">/// </span><br />
  <span style="color:rgb(96,96,96);">13:</span><span style="color:rgb(0,24,245);">publicbool</span> ThrowExceptions { get; set; }<br />
  <span style="color:rgb(96,96,96);background-color:rgb(244,244,244);">14:</span> <br />
<span style="background-color:rgb(244,244,244);"></span>  <span style="color:rgb(96,96,96);">15:</span><span style="color:rgb(57,124,25);">/// </span><br />
  <span style="color:rgb(96,96,96);background-color:rgb(244,244,244);">16:</span><span style="color:rgb(57,124,25);background-color:rgb(244,244,244);">/// Output StringToWrite to a log</span><br />
  <span style="color:rgb(96,96,96);">17:</span><span style="color:rgb(57,124,25);">/// </span><br />
  <span style="color:rgb(96,96,96);background-color:rgb(244,244,244);">18:</span><span style="color:rgb(57,124,25);background-color:rgb(244,244,244);">/// </span><span style="background-color:rgb(244,244,244);">A string to be written to a log<br />
</span>  <span style="color:rgb(96,96,96);">19:</span><span style="color:rgb(0,24,245);">protectedvirtualvoid</span> WriteLogFileEntry(<span style="color:rgb(0,24,245);">string</span> StringToWrite)<br />
  <span style="color:rgb(96,96,96);background-color:rgb(244,244,244);">20:</span>         <span style="background-color:rgb(244,244,244);">{<br />
</span>  <span style="color:rgb(96,96,96);">21:</span><span style="color:rgb(57,124,25);">// This method should be implemented if logging is desired</span><br />
  <span style="color:rgb(96,96,96);background-color:rgb(244,244,244);">22:</span>         <span style="background-color:rgb(244,244,244);">}<br />
</span>  <span style="color:rgb(96,96,96);">23:</span> <br />
  <span style="color:rgb(96,96,96);background-color:rgb(244,244,244);">24:</span><span style="color:rgb(57,124,25);background-color:rgb(244,244,244);">/// </span><br />
  <span style="color:rgb(96,96,96);">25:</span><span style="color:rgb(57,124,25);">/// Convert a row to a DTO</span><br />
  <span style="color:rgb(96,96,96);background-color:rgb(244,244,244);">26:</span><span style="color:rgb(57,124,25);background-color:rgb(244,244,244);">/// </span><br />
  <span style="color:rgb(96,96,96);">27:</span><span style="color:rgb(57,124,25);">/// </span>The DataReader to build DTOs from<br />
  <span style="color:rgb(96,96,96);background-color:rgb(244,244,244);">28:</span><span style="color:rgb(57,124,25);background-color:rgb(244,244,244);">/// A new DTO object</span><br />
  <span style="color:rgb(96,96,96);">29:</span><span style="color:rgb(0,24,245);">protectedvirtual</span> T ParseDataRow(OleDbDataReader DataReader)<br />
  <span style="color:rgb(96,96,96);background-color:rgb(244,244,244);">30:</span>         <span style="background-color:rgb(244,244,244);">{<br />
</span>  <span style="color:rgb(96,96,96);">31:</span><span style="color:rgb(57,124,25);">// This method should be implemented</span><br />
  <span style="color:rgb(96,96,96);background-color:rgb(244,244,244);">32:</span><span style="color:rgb(0,24,245);background-color:rgb(244,244,244);">thrownew</span> <span style="background-color:rgb(244,244,244);">NotImplementedException(</span><span style="color:rgb(42,94,125);background-color:rgb(244,244,244);">&#8220;You must implement ParseDataRow&#8221;</span><span style="background-color:rgb(244,244,244);">);<br />
</span>  <span style="color:rgb(96,96,96);">33:</span>         }<br />
  <span style="color:rgb(96,96,96);background-color:rgb(244,244,244);">34:</span> <br />
<span style="background-color:rgb(244,244,244);"></span>  <span style="color:rgb(96,96,96);">35:</span><span style="color:rgb(57,124,25);">/// </span><br />
  <span style="color:rgb(96,96,96);background-color:rgb(244,244,244);">36:</span><span style="color:rgb(57,124,25);background-color:rgb(244,244,244);">/// Reads each row of an Excel file sheet and returns a collection of DTOs</span><br />
  <span style="color:rgb(96,96,96);">37:</span><span style="color:rgb(57,124,25);">/// </span><br />
  <span style="color:rgb(96,96,96);background-color:rgb(244,244,244);">38:</span><span style="color:rgb(57,124,25);background-color:rgb(244,244,244);">/// </span><span style="background-color:rgb(244,244,244);">The fully qualified path to the exxcell file<br />
</span>  <span style="color:rgb(96,96,96);">39:</span><span style="color:rgb(57,124,25);">/// </span>The sheet/tab name to be processed<br />
  <span style="color:rgb(96,96,96);background-color:rgb(244,244,244);">40:</span><span style="color:rgb(57,124,25);background-color:rgb(244,244,244);">/// A collection of T objects</span><br />
  <span style="color:rgb(96,96,96);">41:</span><span style="color:rgb(0,24,245);">public</span> Collection ProcessExcelFile(<span style="color:rgb(0,24,245);">string</span> FileName, <span style="color:rgb(0,24,245);">string</span> SheetName)<br />
  <span style="color:rgb(96,96,96);background-color:rgb(244,244,244);">42:</span>         <span style="background-color:rgb(244,244,244);">{<br />
</span>  <span style="color:rgb(96,96,96);">43:</span>             Collection objectList = <span style="color:rgb(0,24,245);">new</span> Collection();<br />
  <span style="color:rgb(96,96,96);background-color:rgb(244,244,244);">44:</span> <br />
<span style="background-color:rgb(244,244,244);"></span>  <span style="color:rgb(96,96,96);">45:</span>             OleDbConnection conn = <span style="color:rgb(0,24,245);">new</span> OleDbConnection();<br />
  <span style="color:rgb(96,96,96);background-color:rgb(244,244,244);">46:</span><span style="color:rgb(0,24,245);background-color:rgb(244,244,244);">try</span><br />
  <span style="color:rgb(96,96,96);">47:</span>             {<br />
  <span style="color:rgb(96,96,96);background-color:rgb(244,244,244);">48:</span>                 <span style="background-color:rgb(244,244,244);">WriteLogFileEntry(String.Format(</span><span style="color:rgb(42,94,125);background-color:rgb(244,244,244);">&#8220;Opening File: {0}&#8221;</span><span style="background-color:rgb(244,244,244);">, FileName));<br />
</span>  <span style="color:rgb(96,96,96);">49:</span> <br />
  <span style="color:rgb(96,96,96);background-color:rgb(244,244,244);">50:</span><span style="color:rgb(57,124,25);background-color:rgb(244,244,244);">// Make sure the file exists first</span><br />
  <span style="color:rgb(96,96,96);">51:</span><span style="color:rgb(0,24,245);">if</span>( File.Exists( FileName ) == <span style="color:rgb(0,24,245);">false</span> )<br />
  <span style="color:rgb(96,96,96);background-color:rgb(244,244,244);">52:</span>                 <span style="background-color:rgb(244,244,244);">{<br />
</span>  <span style="color:rgb(96,96,96);">53:</span><span style="color:rgb(0,24,245);">thrownew</span> FileNotFoundException(String.Format(<span style="color:rgb(42,94,125);">&#8221; Unable to locate requested file, aborting: {0}&#8221;</span>, FileName));<br />
  <span style="color:rgb(96,96,96);background-color:rgb(244,244,244);">54:</span>                 <span style="background-color:rgb(244,244,244);">}<br />
</span>  <span style="color:rgb(96,96,96);">55:</span> <br />
  <span style="color:rgb(96,96,96);background-color:rgb(244,244,244);">56:</span>                 <span style="background-color:rgb(244,244,244);">conn = </span><span style="color:rgb(0,24,245);background-color:rgb(244,244,244);">new</span> <span style="background-color:rgb(244,244,244);">OleDbConnection(</span><span style="color:rgb(42,94,125);background-color:rgb(244,244,244);">&#8220;Provider=Microsoft.Jet.OLEDB.4.0;Data Source=&#8221;</span> <span style="background-color:rgb(244,244,244);">+ FileName + </span><span style="color:rgb(42,94,125);background-color:rgb(244,244,244);">&#8220;;Extended Properties=\&#8221;Excel 8.0;\&#8221;"</span><span style="background-color:rgb(244,244,244);">);<br />
</span>  <span style="color:rgb(96,96,96);">57:</span>                 conn.Open();<br />
  <span style="color:rgb(96,96,96);background-color:rgb(244,244,244);">58:</span> <br />
<span style="background-color:rgb(244,244,244);"></span>  <span style="color:rgb(96,96,96);">59:</span>                 OleDbCommand cmd = <span style="color:rgb(0,24,245);">new</span> OleDbCommand(String.Format(<span style="color:rgb(42,94,125);">&#8220;SELECT * FROM [{0}$]&#8220;</span>, SheetName), conn);<br />
  <span style="color:rgb(96,96,96);background-color:rgb(244,244,244);">60:</span> <br />
<span style="background-color:rgb(244,244,244);"></span>  <span style="color:rgb(96,96,96);">61:</span>                 OleDbDataReader dataReader = cmd.ExecuteReader();<br />
  <span style="color:rgb(96,96,96);background-color:rgb(244,244,244);">62:</span> <br />
<span style="background-color:rgb(244,244,244);"></span>  <span style="color:rgb(96,96,96);">63:</span><span style="color:rgb(0,24,245);">int</span> rowCounter = 0;<br />
  <span style="color:rgb(96,96,96);background-color:rgb(244,244,244);">64:</span><span style="color:rgb(0,24,245);background-color:rgb(244,244,244);">while</span> <span style="background-color:rgb(244,244,244);">(dataReader.Read())<br />
</span>  <span style="color:rgb(96,96,96);">65:</span>                 {<br />
  <span style="color:rgb(96,96,96);background-color:rgb(244,244,244);">66:</span><span style="color:rgb(57,124,25);background-color:rgb(244,244,244);">// Advance the row number for logging</span><br />
  <span style="color:rgb(96,96,96);">67:</span>                     ++rowCounter;<br />
  <span style="color:rgb(96,96,96);background-color:rgb(244,244,244);">68:</span> <br />
<span style="background-color:rgb(244,244,244);"></span>  <span style="color:rgb(96,96,96);">69:</span>                     WriteLogFileEntry(String.Format(<span style="color:rgb(42,94,125);">&#8221; Processing data row {0}&#8221;</span>, rowCounter));<br />
  <span style="color:rgb(96,96,96);background-color:rgb(244,244,244);">70:</span> <br />
<span style="background-color:rgb(244,244,244);"></span>  <span style="color:rgb(96,96,96);">71:</span><span style="color:rgb(0,24,245);">try</span><br />
  <span style="color:rgb(96,96,96);background-color:rgb(244,244,244);">72:</span>                     <span style="background-color:rgb(244,244,244);">{<br />
</span>  <span style="color:rgb(96,96,96);">73:</span><span style="color:rgb(57,124,25);">// Add the next row to the collection</span><br />
  <span style="color:rgb(96,96,96);background-color:rgb(244,244,244);">74:</span>                         <span style="background-color:rgb(244,244,244);">objectList.Add(ParseDataRow(dataReader));<br />
</span>  <span style="color:rgb(96,96,96);">75:</span>                     }<br />
  <span style="color:rgb(96,96,96);background-color:rgb(244,244,244);">76:</span><span style="color:rgb(0,24,245);background-color:rgb(244,244,244);">catch</span><span style="background-color:rgb(244,244,244);">(Exception up)<br />
</span>  <span style="color:rgb(96,96,96);">77:</span>                     {<br />
  <span style="color:rgb(96,96,96);background-color:rgb(244,244,244);">78:</span><span style="color:rgb(0,24,245);background-color:rgb(244,244,244);">string</span> <span style="background-color:rgb(244,244,244);">exceptionMessage = String.Format(</span><span style="color:rgb(42,94,125);background-color:rgb(244,244,244);">&#8221; Exception processing row {0}: {1}&#8221;</span><span style="background-color:rgb(244,244,244);">, rowCounter, up.Message);<br />
</span>  <span style="color:rgb(96,96,96);">79:</span> <br />
  <span style="color:rgb(96,96,96);background-color:rgb(244,244,244);">80:</span><span style="color:rgb(57,124,25);background-color:rgb(244,244,244);">// If we throw exceptions up then the outer catch will describe the exception so we wont log it here</span><br />
  <span style="color:rgb(96,96,96);">81:</span><span style="color:rgb(0,24,245);">if</span>( ThrowExceptions )<br />
  <span style="color:rgb(96,96,96);background-color:rgb(244,244,244);">82:</span>                         <span style="background-color:rgb(244,244,244);">{<br />
</span>  <span style="color:rgb(96,96,96);">83:</span><span style="color:rgb(0,24,245);">thrownew</span> ApplicationException(exceptionMessage, up);<br />
  <span style="color:rgb(96,96,96);background-color:rgb(244,244,244);">84:</span>                         <span style="background-color:rgb(244,244,244);">}<br />
</span>  <span style="color:rgb(96,96,96);">85:</span> <br />
  <span style="color:rgb(96,96,96);background-color:rgb(244,244,244);">86:</span><span style="color:rgb(57,124,25);background-color:rgb(244,244,244);">// If there is an exception then log it</span><br />
  <span style="color:rgb(96,96,96);">87:</span>                         WriteLogFileEntry(exceptionMessage);<br />
  <span style="color:rgb(96,96,96);background-color:rgb(244,244,244);">88:</span>                     <span style="background-color:rgb(244,244,244);">}<br />
</span>  <span style="color:rgb(96,96,96);">89:</span>                 }<br />
  <span style="color:rgb(96,96,96);background-color:rgb(244,244,244);">90:</span>             <span style="background-color:rgb(244,244,244);">}<br />
</span>  <span style="color:rgb(96,96,96);">91:</span><span style="color:rgb(0,24,245);">catch</span>(Exception up)<br />
  <span style="color:rgb(96,96,96);background-color:rgb(244,244,244);">92:</span>             <span style="background-color:rgb(244,244,244);">{<br />
</span>  <span style="color:rgb(96,96,96);">93:</span><span style="color:rgb(0,24,245);">string</span> exceptionMessage = String.Format(<span style="color:rgb(42,94,125);">&#8221; Exception processing file {0}: {1}&#8221;</span>, FileName, up.Message);<br />
  <span style="color:rgb(96,96,96);background-color:rgb(244,244,244);">94:</span> <br />
<span style="background-color:rgb(244,244,244);"></span>  <span style="color:rgb(96,96,96);">95:</span><span style="color:rgb(57,124,25);">// If there is an exception then log it</span><br />
  <span style="color:rgb(96,96,96);background-color:rgb(244,244,244);">96:</span>                 <span style="background-color:rgb(244,244,244);">WriteLogFileEntry(exceptionMessage);<br />
</span>  <span style="color:rgb(96,96,96);">97:</span> <br />
  <span style="color:rgb(96,96,96);background-color:rgb(244,244,244);">98:</span><span style="color:rgb(0,24,245);background-color:rgb(244,244,244);">if</span> <span style="background-color:rgb(244,244,244);">(ThrowExceptions)<br />
</span>  <span style="color:rgb(96,96,96);">99:</span>                 {<br />
 <span style="color:rgb(96,96,96);background-color:rgb(244,244,244);">100:</span><span style="color:rgb(0,24,245);background-color:rgb(244,244,244);">thrownew</span> <span style="background-color:rgb(244,244,244);">ApplicationException(exceptionMessage, up);<br />
</span> <span style="color:rgb(96,96,96);">101:</span>                 }<br />
 <span style="color:rgb(96,96,96);background-color:rgb(244,244,244);">102:</span>             <span style="background-color:rgb(244,244,244);">}<br />
</span> <span style="color:rgb(96,96,96);">103:</span><span style="color:rgb(0,24,245);">finally</span><br />
 <span style="color:rgb(96,96,96);background-color:rgb(244,244,244);">104:</span>             <span style="background-color:rgb(244,244,244);">{<br />
</span> <span style="color:rgb(96,96,96);">105:</span>                 conn.Close();<br />
 <span style="color:rgb(96,96,96);background-color:rgb(244,244,244);">106:</span>                 <span style="background-color:rgb(244,244,244);">WriteLogFileEntry(</span><span style="color:rgb(42,94,125);background-color:rgb(244,244,244);">&#8221; Processing file completed&#8221;</span><span style="background-color:rgb(244,244,244);">);<br />
</span> <span style="color:rgb(96,96,96);">107:</span>             }<br />
 <span style="color:rgb(96,96,96);background-color:rgb(244,244,244);">108:</span> <br />
<span style="background-color:rgb(244,244,244);"></span> <span style="color:rgb(96,96,96);">109:</span><span style="color:rgb(0,24,245);">return</span> objectList;<br />
 <span style="color:rgb(96,96,96);background-color:rgb(244,244,244);">110:</span>         <span style="background-color:rgb(244,244,244);">}<br />
</span> <span style="color:rgb(96,96,96);">111:</span>     }<br />
 <span style="color:rgb(96,96,96);background-color:rgb(244,244,244);">112:</span> <span style="background-color:rgb(244,244,244);">}<br />
</span>In order to use the template you can define a new class and inherit from the DigestExcel class like this:<br />
   <span style="color:rgb(96,96,96);">1:</span><span style="color:rgb(0,24,245);">publicclass</span> DigestSample : DigestExcel<br />
   <span style="color:rgb(96,96,96);background-color:rgb(244,244,244);">2:</span> <span style="background-color:rgb(244,244,244);">{<br />
</span>   <span style="color:rgb(96,96,96);">3:</span><span style="color:rgb(0,24,245);">protectedoverridevoid</span> WriteLogFileEntry(<span style="color:rgb(0,24,245);">string</span> StringToWrite)<br />
   <span style="color:rgb(96,96,96);background-color:rgb(244,244,244);">4:</span>     <span style="background-color:rgb(244,244,244);">{<br />
</span>   <span style="color:rgb(96,96,96);">5:</span>          Console.WriteLine(StringToWrite);<br />
   <span style="color:rgb(96,96,96);background-color:rgb(244,244,244);">6:</span>     <span style="background-color:rgb(244,244,244);">}<br />
</span>   <span style="color:rgb(96,96,96);">7:</span> <br />
   <span style="color:rgb(96,96,96);background-color:rgb(244,244,244);">8:</span><span style="color:rgb(0,24,245);background-color:rgb(244,244,244);">protectedoverride</span> <span style="background-color:rgb(244,244,244);">SampleDTO ParseDataRow(System.Data.OleDb.OleDbDataReader DataReader)<br />
</span>   <span style="color:rgb(96,96,96);">9:</span>     {<br />
  <span style="color:rgb(96,96,96);background-color:rgb(244,244,244);">10:</span>         <span style="background-color:rgb(244,244,244);">SampleDTO newRow = </span><span style="color:rgb(0,24,245);background-color:rgb(244,244,244);">new</span> <span style="background-color:rgb(244,244,244);">SampleDTO();<br />
</span>  <span style="color:rgb(96,96,96);">11:</span> <br />
  <span style="color:rgb(96,96,96);background-color:rgb(244,244,244);">12:</span>         <span style="background-color:rgb(244,244,244);">newRow.Value1 = DataReader[0].ToString().Trim();<br />
</span>  <span style="color:rgb(96,96,96);">13:</span>         newRow.Value2 = DataReader[1].ToString().Trim();<br />
  <span style="color:rgb(96,96,96);background-color:rgb(244,244,244);">14:</span> <br />
<span style="background-color:rgb(244,244,244);"></span>  <span style="color:rgb(96,96,96);">15:</span><span style="color:rgb(0,24,245);">return</span> newRow;<br />
  <span style="color:rgb(96,96,96);background-color:rgb(244,244,244);">16:</span>     <span style="background-color:rgb(244,244,244);">}<br />
</span>  <span style="color:rgb(96,96,96);">17:</span> }</p>
<p>Hi and welcome.  This blog is the technical side of of a combined blog I used to keep called Life in the Trenches.  I decided to go ahead and split out the content since they focus was lacking.  Sure combining software development and MMORPGs is not unnatural; I know a lot of coders that are gamers, or is that a lot of gamers that are coders?</p>
<p>At any rate I’ll be transferring the ‘good’ posts from my old archive to get he ball rolling.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/trenchcode.wordpress.com/5/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/trenchcode.wordpress.com/5/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/trenchcode.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/trenchcode.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/trenchcode.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/trenchcode.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/trenchcode.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/trenchcode.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/trenchcode.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/trenchcode.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/trenchcode.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/trenchcode.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/trenchcode.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/trenchcode.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/trenchcode.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/trenchcode.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=trenchcode.wordpress.com&amp;blog=10896736&amp;post=5&amp;subd=trenchcode&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://trenchcode.wordpress.com/2008/09/11/reading-excel-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e2bf73af13c419c57baee3318c02b6bf?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">melarian</media:title>
		</media:content>
	</item>
	</channel>
</rss>
