<?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>Daniel Simon &#187; C#</title>
	<atom:link href="http://greendesignhq.com/blog/category/c/feed/" rel="self" type="application/rss+xml" />
	<link>http://greendesignhq.com/blog</link>
	<description>Just another software blog</description>
	<lastBuildDate>Tue, 31 Aug 2010 20:21:49 +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>How can universally unique primary keys can be generated ?</title>
		<link>http://greendesignhq.com/blog/2010/02/how-can-universally-unique-primary-keys-can-be-generated/</link>
		<comments>http://greendesignhq.com/blog/2010/02/how-can-universally-unique-primary-keys-can-be-generated/#comments</comments>
		<pubDate>Wed, 24 Feb 2010 15:28:37 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://greendesignhq.com/blog/?p=112</guid>
		<description><![CDATA[The generic solution is to generate a 32 digit key, encoded in hexadecimal composed as follows: 1: Unique down to the millisecond. Digits 1-8 are the hex encoded lower 32 bits of the System.DateTime.Now.Millisecond() call. 2: Unique across a cluster. Digits 9-16 are the encoded representation of the 32 bit integer of the underlying IP [...]]]></description>
		<wfw:commentRss>http://greendesignhq.com/blog/2010/02/how-can-universally-unique-primary-keys-can-be-generated/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reading and Writing Window Registry in C#</title>
		<link>http://greendesignhq.com/blog/2010/02/reading-and-writing-window-registry-in-c/</link>
		<comments>http://greendesignhq.com/blog/2010/02/reading-and-writing-window-registry-in-c/#comments</comments>
		<pubDate>Mon, 22 Feb 2010 20:59:25 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[csharp]]></category>
		<category><![CDATA[Registry]]></category>

		<guid isPermaLink="false">http://greendesignhq.com/blog/?p=98</guid>
		<description><![CDATA[Since its introduction in Windows 95, the registry has more often than not intimidated developers. The registry acts as a central repository of information for the operating system and the applications on a computer. When you store information in the registry, choose the appropriate location based on the category of information being stored. Here is [...]]]></description>
		<wfw:commentRss>http://greendesignhq.com/blog/2010/02/reading-and-writing-window-registry-in-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Indenting XML using C#</title>
		<link>http://greendesignhq.com/blog/2010/02/indenting-xml-using-c/</link>
		<comments>http://greendesignhq.com/blog/2010/02/indenting-xml-using-c/#comments</comments>
		<pubDate>Mon, 22 Feb 2010 15:18:18 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Pretty XML]]></category>

		<guid isPermaLink="false">http://greendesignhq.com/blog/?p=83</guid>
		<description><![CDATA[There are times when you need to display an XML string to be able to view in a good format. // Pretty XML format with consistant indentation. public static String prettyXMLPrint(String XML) { String Result = ""; MemoryStream msStream = new MemoryStream(); XmlTextWriter xmlWriter = new XmlTextWriter(msStream , Encoding.Unicode); XmlDocument xmlDocument = new XmlDocument(); try [...]]]></description>
		<wfw:commentRss>http://greendesignhq.com/blog/2010/02/indenting-xml-using-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Find out  if an URL exists &#8211; C#</title>
		<link>http://greendesignhq.com/blog/2010/02/find-out-if-an-url-exists-c/</link>
		<comments>http://greendesignhq.com/blog/2010/02/find-out-if-an-url-exists-c/#comments</comments>
		<pubDate>Fri, 05 Feb 2010 19:58:09 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://greendesignhq.com/blog/?p=42</guid>
		<description><![CDATA[Trying to find out if the url is valid ? Use the following code: public static bool urlExist(string url) { WebRequest webRequest = WebRequest.Create(url); WebResponse webResponse; webRequest.Timeout = 1500; // Max timeout try { webResponse = webRequest.GetResponse(); } catch //If exception thrown then couldn't get response from address { return false; } return true; }]]></description>
		<wfw:commentRss>http://greendesignhq.com/blog/2010/02/find-out-if-an-url-exists-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Generate a temporary file name on disk &#8211; C#</title>
		<link>http://greendesignhq.com/blog/2010/02/generate-a-temporary-file-name-on-disk-c/</link>
		<comments>http://greendesignhq.com/blog/2010/02/generate-a-temporary-file-name-on-disk-c/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 19:28:50 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://greendesignhq.com/blog/?p=37</guid>
		<description><![CDATA[public static string getTemporaryFile(string extension) { string tempfile = String.Empty; if (!extension.StartsWith(".")) extension = "." + extension; tempfile = Path.Combine(System.IO.Path.GetTempPath(),Guid.NewGuid().ToString()+ extension); return tempfile; }]]></description>
		<wfw:commentRss>http://greendesignhq.com/blog/2010/02/generate-a-temporary-file-name-on-disk-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reading and Parsing XML Nodes &#8211; C#</title>
		<link>http://greendesignhq.com/blog/2010/02/reading-and-parsing-xml-nodes-c/</link>
		<comments>http://greendesignhq.com/blog/2010/02/reading-and-parsing-xml-nodes-c/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 18:36:24 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://greendesignhq.com/blog/?p=29</guid>
		<description><![CDATA[The XmlTextReader provides a forward only mean of reading a specific XML node. The application reads each node of an XML document, determining along the way whether the current node is what is needed. This is typically accomplished by constructing an XmlTextReader object and then iteratively calling—within a loop—the XmlTextReader::Read method until that method returns [...]]]></description>
		<wfw:commentRss>http://greendesignhq.com/blog/2010/02/reading-and-parsing-xml-nodes-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to: Create a File or Folder &#8211; C#</title>
		<link>http://greendesignhq.com/blog/2010/02/how-to-create-a-file-or-folder-c/</link>
		<comments>http://greendesignhq.com/blog/2010/02/how-to-create-a-file-or-folder-c/#comments</comments>
		<pubDate>Mon, 01 Feb 2010 15:37:23 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://greendesignhq.com/blog/?p=16</guid>
		<description><![CDATA[This example creates a folder and a subfolder on a computer. // Specify a "currently active folder" string activeDir = @"c:\testdir2"; //Create a new subfolder under the current active folder string filePath = System.IO.Path.Combine(activeDir, "mySubDir"); // Create the subfolder if (!System.IO.Directory.Exists(filePath)) { //Create directory System.IO.Directory.CreateDirectory(filePath); } For more info see: http://msdn.microsoft.com/en-us/library/as2f1fez.aspx]]></description>
		<wfw:commentRss>http://greendesignhq.com/blog/2010/02/how-to-create-a-file-or-folder-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Random number always the same &#8211; C#</title>
		<link>http://greendesignhq.com/blog/2010/01/random-number-always-the-same-c/</link>
		<comments>http://greendesignhq.com/blog/2010/01/random-number-always-the-same-c/#comments</comments>
		<pubDate>Sun, 31 Jan 2010 20:29:59 +0000</pubDate>
		<dc:creator>samantha</dc:creator>
				<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://greendesignhq.com/blog/?p=6</guid>
		<description><![CDATA[A typical mistake when creating random number in C# is to forget the static definition. To make the C# random class work appropriately, make sure that the declaration of your random is static as follow. using System; class Program { static void Main() { // Call method that uses class-level Random TestRandom(); /* Call same [...]]]></description>
		<wfw:commentRss>http://greendesignhq.com/blog/2010/01/random-number-always-the-same-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
