<?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>Global Nerdy &#187; C Sharp</title>
	<atom:link href="http://www.globalnerdy.com/tag/c-sharp/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.globalnerdy.com</link>
	<description>Tech Evangelist Joey deVilla on Shopify, startups, software development, tech news and other nerdy stuff</description>
	<lastBuildDate>Thu, 09 Feb 2012 18:30:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Why Does This C# Code Compile?</title>
		<link>http://www.globalnerdy.com/2008/11/28/why-does-this-c-code-compile/</link>
		<comments>http://www.globalnerdy.com/2008/11/28/why-does-this-c-code-compile/#comments</comments>
		<pubDate>Fri, 28 Nov 2008 23:27:41 +0000</pubDate>
		<dc:creator>Joey deVilla</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[C Sharp]]></category>
		<category><![CDATA[puzzles]]></category>

		<guid isPermaLink="false">http://www.globalnerdy.com/2008/11/28/why-does-this-c-code-compile/</guid>
		<description><![CDATA[Here&#8217;s a cute little puzzler I got from the blog hackification &#8212; why the does code below compile? using System; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { http://www.globalnerdy.com System.Console.WriteLine(&#34;Hello from Global Nerdy!&#34;); System.Console.WriteLine(&#34;(Press ENTER to continue)&#34;); System.Console.ReadLine(); } } } Here’s what the output of the program looks like: Why does [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Here&#8217;s a cute little puzzler I got from the blog <em><a href="http://www.hackification.com/">hackification</a></em> &#8212; why the does code below compile? <code></code></p>
<pre>using System;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {

http://www.globalnerdy.com

            System.Console.WriteLine(&quot;Hello from Global Nerdy!&quot;);
            System.Console.WriteLine(&quot;(Press ENTER to continue)&quot;);
            System.Console.ReadLine();
        }
    }
}</pre>
</p>
<p>Here’s what the output of the program looks like:</p>
<p><img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="Console output: &quot;Hello from Global Nerdy! (Press ENTER to continue)&quot;" border="0" alt="Console output: &quot;Hello from Global Nerdy! (Press ENTER to continue)&quot;" src="http://www.globalnerdy.com/wordpress/wp-content/uploads/2008/11/hello-from-global-nerdy.gif" width="436" height="177" /> </p>
<p>Why does the program compile even though the first line of the <code>Main()</code> method is a “bareword” URL? See if you can figure it out on your own rather than running it through the compiler – doing that gives away the answer.</p>
<p>I’ll post the answer in the comments.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.globalnerdy.com/2008/11/28/why-does-this-c-code-compile/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

