<?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/"
	>

<channel>
	<title>The ramblings of a yorkshire tyke &#187; CSharp</title>
	<atom:link href="http://www.gennard.net/blog/category/clr/csharp/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gennard.net/blog</link>
	<description>Life, Rants and Programming In A Blog</description>
	<lastBuildDate>Sun, 22 Aug 2010 15:16:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>A Comparison Of .Net COBOL, Visual Basic and C#</title>
		<link>http://www.gennard.net/blog/2009/12/cobol-vb-csharp-compared/</link>
		<comments>http://www.gennard.net/blog/2009/12/cobol-vb-csharp-compared/#comments</comments>
		<pubDate>Tue, 15 Dec 2009 12:35:44 +0000</pubDate>
		<dc:creator>spgennard</dc:creator>
				<category><![CDATA[COBOL]]></category>
		<category><![CDATA[CSharp]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[VB.Net]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[cobol.net]]></category>
		<category><![CDATA[vb]]></category>

		<guid isPermaLink="false">http://www.gennard.net/blog/?p=382</guid>
		<description><![CDATA[Today my collegues Robert and Alex have finally decided to publish a document that compares Visual Basic, C# and COBOL for .Net under The Creative Commons Attribution-ShareAlike 2.5 License. Rather than doing a cut-paste job, here is a quote from alex, along with a link to the &#8220;real&#8221; article itself. Enjoy. Alex Turner said: A [...]]]></description>
			<content:encoded><![CDATA[<p>Today my collegues Robert and Alex have finally <img src='http://www.gennard.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  decided to publish a document that compares Visual Basic, C# and COBOL for .Net under <a href="http://creativecommons.org/licenses/by-sa/2.5/">The Creative Commons Attribution-ShareAlike 2.5 License</a>.</p>
<p>Rather than doing a cut-paste job, here is a quote from alex, along with a link to the &#8220;real&#8221; article itself.</p>
<p>Enjoy.</p>
<blockquote>
<p>Alex Turner said:</p>
<p><strong><em>A Comparison Of .Net COBOL, Visual Basic and C#</em></strong></p>
<p><strong>Introduction</strong></p>
<p>If you are a COBOL programmer wanting to learn C# or a VB programmer wanting to learn COBOL as a .net language (or any other combination of VB.net, C# and COBOL) then this is a good place to start. </p>
<p><strong>Background</strong></p>
<p>If you are a COBOL programmer wanting to learn C# or a VB programmer wanting to learn COBOL as a .net language (or any other combination of VB.net, C# and COBOL) then this is a good place to start.</p>
<p>It has often been noted that the richness of the COBOL language in its Micro Focus .net implementation is not well known. Robert Sales and I have worked on this document to help bring the language to peoples&#8217; attention and to help people who need to work with COBOL on the .net platform.</p>
<p><a href="http://www.codeproject.com/KB/net-languages/COBOLvsVBvsCSharp.aspx">Click here to continue reading the rest of the article&#8230;</a></p>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.gennard.net/blog/2009/12/cobol-vb-csharp-compared/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Detecting the use Mono CLR dynamically</title>
		<link>http://www.gennard.net/blog/2009/11/detecting-the-use-mono-clr-dynamically/</link>
		<comments>http://www.gennard.net/blog/2009/11/detecting-the-use-mono-clr-dynamically/#comments</comments>
		<pubDate>Tue, 17 Nov 2009 20:25:16 +0000</pubDate>
		<dc:creator>spgennard</dc:creator>
				<category><![CDATA[CLR]]></category>
		<category><![CDATA[CSharp]]></category>
		<category><![CDATA[Mono]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://www.gennard.net/blog/?p=200</guid>
		<description><![CDATA[While developing something that could be used on Mono on Windows, Mono on Unix and on Windows with Microsoft&#8217;s CLR, I needed to be sensitive to the environment but didn&#8217;t want to conditionally compile my code different. So I put together a quick class to help.. Below is the C# code with pics of it [...]]]></description>
			<content:encoded><![CDATA[<p>While developing something that could be used on Mono on Windows, Mono on Unix and on Windows with Microsoft&#8217;s CLR, I needed to be sensitive to the environment but didn&#8217;t want to conditionally compile my code different.   So I put together a quick class to help..   Below is the C# code with pics of it running on Windows/Mac&#8230;</p>
<div class="codecolorer-container csharp blackboard" style="border:1px solid #9F9F9F;width:435px;"><div class="csharp codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System</span><span style="color: #008000;">;</span><br />
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Reflection</span><span style="color: #008000;">;</span><br />
<br />
<span style="color: #0600FF; font-weight: bold;">namespace</span> Gennard<span style="color: #008000;">.</span><span style="color: #0000FF;">Net</span><br />
<span style="color: #008000;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #6666cc; font-weight: bold;">class</span> CLRUtils<br />
&nbsp; &nbsp; <span style="color: #008000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">private</span> <span style="color: #0600FF; font-weight: bold;">static</span> <span style="color: #0600FF; font-weight: bold;">readonly</span> <span style="color: #6666cc; font-weight: bold;">bool</span> isMono<span style="color: #008000;">=</span> Type<span style="color: #008000;">.</span><span style="color: #0000FF;">GetType</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;Mono.Runtime&quot;</span><span style="color: #008000;">&#41;</span> <span style="color: #008000;">==</span> <span style="color: #0600FF; font-weight: bold;">null</span> <span style="color: #008000;">?</span> <span style="color: #0600FF; font-weight: bold;">false</span> <span style="color: #008000;">:</span> <span style="color: #0600FF; font-weight: bold;">true</span><span style="color: #008000;">;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">private</span> <span style="color: #0600FF; font-weight: bold;">static</span> <span style="color: #0600FF; font-weight: bold;">readonly</span> <span style="color: #6666cc; font-weight: bold;">int</span> eOSp <span style="color: #008000;">=</span> <span style="color: #008000;">&#40;</span><span style="color: #6666cc; font-weight: bold;">int</span><span style="color: #008000;">&#41;</span>Environment<span style="color: #008000;">.</span><span style="color: #0000FF;">OSVersion</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Platform</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">private</span> <span style="color: #0600FF; font-weight: bold;">static</span> <span style="color: #0600FF; font-weight: bold;">readonly</span> <span style="color: #6666cc; font-weight: bold;">bool</span> isUnix <span style="color: #008000;">=</span> &nbsp;<span style="color: #008000;">&#40;</span>eOSp <span style="color: #008000;">==</span> <span style="color: #FF0000;">4</span><span style="color: #008000;">&#41;</span> <span style="color: #008000;">||</span> <span style="color: #008000;">&#40;</span>eOSp <span style="color: #008000;">==</span> <span style="color: #FF0000;">128</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">/* Class Properties */</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #0600FF; font-weight: bold;">static</span> <span style="color: #6666cc; font-weight: bold;">bool</span> IsMono <span style="color: #008000;">&#123;</span> get <span style="color: #008000;">&#123;</span> <span style="color: #0600FF; font-weight: bold;">return</span> isMono<span style="color: #008000;">;</span> <span style="color: #008000;">&#125;</span> <span style="color: #008000;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #0600FF; font-weight: bold;">static</span> <span style="color: #6666cc; font-weight: bold;">bool</span> IsUnix <span style="color: #008000;">&#123;</span> get <span style="color: #008000;">&#123;</span> <span style="color: #0600FF; font-weight: bold;">return</span> isUnix<span style="color: #008000;">;</span> <span style="color: #008000;">&#125;</span> <span style="color: #008000;">&#125;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #0600FF; font-weight: bold;">static</span> <span style="color: #6666cc; font-weight: bold;">void</span> Main<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console<span style="color: #008000;">.</span><span style="color: #0000FF;">WriteLine</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;Are we using Mono? : &quot;</span><span style="color: #008000;">+</span>IsMono<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console<span style="color: #008000;">.</span><span style="color: #0000FF;">WriteLine</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;Are we using Unix? : &quot;</span><span style="color: #008000;">+</span>IsUnix<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br />
<span style="color: #008000;">&#125;</span></div></div>
<p>The taste of the pudding mix.. is in the eating.. so lets see it working&#8230; </p>
<p><img src="http://www.gennard.net/blog/wp-content/uploads/2009/11/Windows_Use.png" alt="On Windows...." title="On Windows...." width="457" height="149" class="alignnone size-full wp-image-204" /></p>
<p><img src="http://www.gennard.net/blog/wp-content/uploads/2009/11/Mac_Use.png" alt="On the Mac, we get...." title="On the Mac, we get...." width="400" height="111" class="alignnone size-full wp-image-203" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.gennard.net/blog/2009/11/detecting-the-use-mono-clr-dynamically/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>C# and reserved words</title>
		<link>http://www.gennard.net/blog/2009/10/c-and-reserved-words/</link>
		<comments>http://www.gennard.net/blog/2009/10/c-and-reserved-words/#comments</comments>
		<pubDate>Fri, 23 Oct 2009 22:15:16 +0000</pubDate>
		<dc:creator>spgennard</dc:creator>
				<category><![CDATA[CLR]]></category>
		<category><![CDATA[CSharp]]></category>

		<guid isPermaLink="false">http://www.gennard.net/blog/?p=3</guid>
		<description><![CDATA[Have you ever wanted to create some real nasty code in C#&#8230; Well C# has a mechanism that allows a token to be used as a literal, thus avoiding the reserved word clash issues&#8230; For example; int @int = 1; @int = 2; if &#40;@int == 2&#41; &#123; @int = 3; &#125; Just imagine the [...]]]></description>
			<content:encoded><![CDATA[<p>Have you ever wanted to create some real nasty code in C#&#8230; Well C# has a mechanism that allows a token to be used as a literal, thus avoiding the reserved word clash issues&#8230; For example;</p>
<div class="codecolorer-container csharp blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="csharp codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #6666cc; font-weight: bold;">int</span> @<span style="color: #6666cc; font-weight: bold;">int</span> <span style="color: #008000;">=</span> <span style="color: #FF0000;">1</span><span style="color: #008000;">;</span><br />
@<span style="color: #6666cc; font-weight: bold;">int</span> <span style="color: #008000;">=</span> <span style="color: #FF0000;">2</span><span style="color: #008000;">;</span><br />
<br />
<span style="color: #0600FF; font-weight: bold;">if</span> <span style="color: #008000;">&#40;</span>@<span style="color: #6666cc; font-weight: bold;">int</span> <span style="color: #008000;">==</span> <span style="color: #FF0000;">2</span><span style="color: #008000;">&#41;</span><br />
<span style="color: #008000;">&#123;</span><br />
@<span style="color: #6666cc; font-weight: bold;">int</span> <span style="color: #008000;">=</span> <span style="color: #FF0000;">3</span><span style="color: #008000;">;</span><br />
<span style="color: #008000;">&#125;</span></div></div>
<p>Just imagine the sort of rubbish code that could be create&#8230; remember because it is present you don&#8217;t have to use it!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gennard.net/blog/2009/10/c-and-reserved-words/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
