<?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>Sorted Bits &#187; C#</title>
	<atom:link href="http://www.sortedbits.com/tag/c/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sortedbits.com</link>
	<description>objectiveC, C# and more interesting stuff</description>
	<lastBuildDate>Wed, 04 Jan 2012 10:11:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Using NLog in your web.config</title>
		<link>http://www.sortedbits.com/using-nlog-in-your-web-config/</link>
		<comments>http://www.sortedbits.com/using-nlog-in-your-web-config/#comments</comments>
		<pubDate>Thu, 08 Jul 2010 07:48:52 +0000</pubDate>
		<dc:creator>Wim</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Coding]]></category>
		<category><![CDATA[Snippets]]></category>
		<category><![CDATA[Nlog]]></category>
		<category><![CDATA[Visual Studio 2010]]></category>

		<guid isPermaLink="false">http://www.wimhaanstra.com/?p=778</guid>
		<description><![CDATA[I have been working on my YourRid.es project a bit lately and one of the things I wanted to put in place, was a good logging system. Most of the time I just use a custom build (read: my own shit) logger, but this time I found [...]]]></description>
			<content:encoded><![CDATA[<p>I have been working on my YourRid.es project a bit lately and one of the things I wanted to put in place, was a good logging system. Most of the time I just use a custom build (read: my own shit) logger, but this time I found the time to browse the internet for some good loggers.</p>
<p>After comparing a bit, I came to NLog and tried integrating this in my project. My project being build in Visual Studio 2010 has support for those nice web.config&#8217;s that can be transformed/malformed/adjusted while publishing. This was very necessary because my debug (local) build uses a different SQL instance than my production build.</p>
<p>So I just wanted to show you how I configured NLog in my web.config. It might be obvious for some people, but for others it might not.<br />
<span id="more-778"></span><br />
In my normal web.config I added the following lines. First I added a new <strong>section</strong> row to my <strong>configSections</strong>.</p>
<pre>
<section />
</pre>
<p>After that I went and added the normal NLog configuration to my web.config.</p>
<pre>

 insert into Log (TimeStamp, Level, Logger, Message, UserIdentity, CallSite) values(@time_stamp, @level, @logger, @message, @useridentity, @callsite);
</pre>
<p>This is the information for my debug environment. Because my laptop run SQL express, it connects to that instance.</p>
<p>This is my web.config.release :</p>
<pre>
</pre>
<p>It changes the connectionstring when I publish my release version. I love that feature of Visual Studio 2010!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sortedbits.com/using-nlog-in-your-web-config/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Reading big XML file with C# XmlReader</title>
		<link>http://www.sortedbits.com/reading-big-xml-file-with-c-xmlreader/</link>
		<comments>http://www.sortedbits.com/reading-big-xml-file-with-c-xmlreader/#comments</comments>
		<pubDate>Mon, 01 Feb 2010 21:27:35 +0000</pubDate>
		<dc:creator>Wim</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Coding]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://www.depl0y.com/?p=524</guid>
		<description><![CDATA[Today I needed to parse a LARGE (1.9GB) XML file and extract some information from it. Loading it in a XmlDocument (my favorite .NET way of handling XML) wasn&#8217;t really a possibility, because that would cause Out of Memory errors the minute I would try it. I [...]]]></description>
			<content:encoded><![CDATA[<p>Today I needed to parse a <strong>LARGE</strong> (1.9GB) XML file and extract some information from it. Loading it in a XmlDocument (my favorite .NET way of handling XML) wasn&#8217;t really a possibility, because that would cause Out of Memory errors the minute I would try it.</p>
<p>I am using a XmlReader for this and I noticed that there arent really many usable examples on the internet about this, so here is just a small example I created to show how you could read a RSS feed.</p>
<p>Sample after the break&#8230;<span id="more-524"></span></p>
<pre class="syntax c">// File to open up, can be an URL too
string XmlFileUrl = @&quot;c:feed.xml&quot;;
using (XmlReader reader = new XmlTextReader(XmlFileUrl))
{
	// Initialize a list for storage of the items
	List items = new List();
	// boolean to see if a node was opened before
	bool openItem = false;
	RssItem item = new RssItem();

	// Loop the reader, till it cant read anymore
	while (reader.Read())
	{
		// An object with the type Element was found.
		if (reader.NodeType == XmlNodeType.Element)
		{
			// Check name of the node and write the contents in the object accordingly.
			if (reader.Name == &quot;item&quot;)
			{
				item = new RssItem();
				openItem = true;
			}
			else if (reader.Name == &quot;title&quot; &amp;amp;&amp;amp; openItem)
				item.title = reader.ReadElementContentAsString();
			else if (reader.Name == &quot;link&quot; &amp;amp;&amp;amp; openItem)
				item.link = reader.ReadElementContentAsString();
			else if (reader.Name == &quot;description&quot; &amp;amp;&amp;amp; openItem)
				item.description = reader.ReadElementContentAsString();
		}
		// EndElement was found, check if it is named item, if it is, store the object in the list and set openItem to false.
		else if (reader.NodeType == XmlNodeType.EndElement &amp;amp;&amp;amp; reader.Name == &quot;item&quot; &amp;amp;&amp;amp; openItem)
		{
			openItem = false;
			items.Add(item);
		}
	}
}</pre>
<p>The <strong>RssItem</strong> class I created is just a simple class containing a couple of properties:</p>
<pre class="syntax c">public class RssItem
{
	public string title { get; set; }
	public string pubDate { get; set; }
	public string link { get; set; }
	public string description { get; set; }
}</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.sortedbits.com/reading-big-xml-file-with-c-xmlreader/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Resizing an image in C#</title>
		<link>http://www.sortedbits.com/resizing-an-image-in-c/</link>
		<comments>http://www.sortedbits.com/resizing-an-image-in-c/#comments</comments>
		<pubDate>Tue, 26 Jan 2010 14:15:14 +0000</pubDate>
		<dc:creator>Wim</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Coding]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[resize]]></category>

		<guid isPermaLink="false">http://www.depl0y.com/?p=477</guid>
		<description><![CDATA[For a project I am working on, I was looking for a good way to resize images in a few different ways. I have done image resizing before, but it really feels that I am re-inventing the wheel every time I do this. So now I decided [...]]]></description>
			<content:encoded><![CDATA[<p>For a project I am working on, I was looking for a good way to resize images in a few different ways. I have done image resizing before, but it really feels that I am re-inventing the wheel every time I do this. So now I decided to write a nice static method which can resize an Image to certain dimensions and outputs an Image object again.</p>
<p>The method requires 3 parameters:</p>
<p>1. An image object. I hope you know how to load a file in an Image object (hint: FromFile).<br />
2. A Resolution object, being nothing more than a small class I created, which also contains the width and the height.<br />
3. The mode you want to use for resizing the image. I explained the modes in the enum listed below.</p>
<p>It probably isnt the neatest code you&#8217;ve ever seen, so if you have any comments, please let me know. Code and more explanation after the break&#8230;<span id="more-477"></span></p>
<pre>///
/// Method resizes the image so it fits the wanted resolution best.
///
///The image to be resized
///The resolution which the image should be when the method is ready.
///The mode for resizing the image.
public static System.Drawing.Image Resize(System.Drawing.Image image, Resolution targetResolution, ResizeMode resizeMode)
{
	int sourceWidth = image.Width;
	int sourceHeight = image.Height;

	int targetWidth = targetResolution.Width;
	int targetHeight = targetResolution.Height;

	// Supplied image is landscape, while the target resolution is portait OR
	// supplied image is in portait, while the target resolution is in landscape.
	// switch target resolution to match the image.
	if ((sourceWidth &gt; sourceHeight &amp;&amp; targetWidth &lt; targetHeight) || (sourceWidth &lt; sourceHeight &amp;&amp; targetWidth &gt; targetHeight))
	{
		targetWidth = targetResolution.Height;
		targetHeight = targetResolution.Width;
	}

	float ratio = 0;
	float ratioWidth = ((float)targetWidth / (float)sourceWidth);
	float ratioHeight = ((float)targetHeight / (float)sourceHeight);

	if (ratioHeight &lt; ratioWidth)
		ratio = ratioHeight;
	else
		ratio = ratioWidth;

	Bitmap newImage = null;

	switch (resizeMode)
	{
		case ResizeMode.Normal:
		default:
			{
				int destWidth = (int)(sourceWidth * ratio);
				int destHeight = (int)(sourceHeight * ratio);

				newImage = new Bitmap(destWidth, destHeight);
				using (Graphics graphics = Graphics.FromImage((System.Drawing.Image)newImage))
				{
					graphics.InterpolationMode = InterpolationMode.HighQualityBicubic;
					graphics.DrawImage(image, 0, 0, destWidth, destHeight);
				}

				break;
			}
		case ResizeMode.Crop:
			{
				if (ratioHeight &gt; ratioWidth)
					ratio = ratioHeight;
				else
					ratio = ratioWidth;

				int destWidth = (int)(sourceWidth * ratio);
				int destHeight = (int)(sourceHeight * ratio);

				newImage = new Bitmap(targetWidth, targetHeight);

				int startX = 0;
				int startY = 0;

				if (destWidth &gt; targetWidth)
					startX = 0 - ((destWidth - targetWidth) / 2);

				if (destHeight &gt; targetHeight)
					startY = 0 - ((destHeight - targetHeight) / 2);

				using (Graphics graphics = Graphics.FromImage((System.Drawing.Image)newImage))
				{
					graphics.InterpolationMode = InterpolationMode.HighQualityBicubic;
					graphics.DrawImage(image, startX, startY, destWidth, destHeight);
				}

				break;
			}
		case ResizeMode.Stretch:
			{
				newImage = new Bitmap(targetWidth, targetHeight);
				using (Graphics graphics = Graphics.FromImage((System.Drawing.Image)newImage))
				{
					graphics.InterpolationMode = InterpolationMode.HighQualityBicubic;
					graphics.DrawImage(image, 0, 0, targetWidth, targetHeight);
				}
				break;
			}
		case ResizeMode.Fill:
			{
				newImage = new Bitmap(targetWidth, targetHeight);

				int destWidth = (int)(sourceWidth * ratio);
				int destHeight = (int)(sourceHeight * ratio);

				int startX = 0;
				int startY = 0;

				if (destWidth &lt; targetWidth)
					startX = 0 + ((targetWidth - destWidth) / 2);

				if (destHeight &lt; targetHeight)
					startY = 0 + ((targetHeight - destHeight) / 2);

				newImage = new Bitmap(targetWidth, targetHeight);
				using (Graphics graphics = Graphics.FromImage((System.Drawing.Image)newImage))
				{
					graphics.InterpolationMode = InterpolationMode.HighQualityBicubic;
					graphics.DrawImage(image, startX, startY, destWidth, destHeight);
				}

				break;
			}
	}

	return (System.Drawing.Image)newImage;
}</pre>
<p>The <strong>resizeMode</strong> parameter is of the type ResizeMode, which is nothing more than a simple enumeration, like this:</p>
<pre>///
/// Modes available for the resize method of images.
///
public enum ResizeMode
{
	///
	/// This will resize images to the resolution nearest to the target resolution. Images can become smaller when using this option
	///
	Normal = 1,
	///
	/// This will stretch an image so it always is the exact dimensions of the target resolution
	///
	Stretch = 2,
	///
	/// This will size an image to the exact dimensions of the target resolution, keeping ratio in mind and cropping parts that can't
	/// fit in the picture.
	///
	Crop = 3,
	///
	/// This will size an image to the exact dimensions of the target resolution, keeping ratio in mind and filling up the image
	/// with black bars when some parts remain empty.
	///
	Fill = 4
}</pre>
<p>And the <strong>targetResolution</strong> parameter, is a simple class containing some properties like <strong>Name</strong>, <strong>Width</strong> and <strong>Height</strong>.</p>
<p>This method seems to do everything I need, if you need anything more, or any information about this code, just email me or reply here.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sortedbits.com/resizing-an-image-in-c/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Application.Lock() &amp; Current session count</title>
		<link>http://www.sortedbits.com/current-session-count/</link>
		<comments>http://www.sortedbits.com/current-session-count/#comments</comments>
		<pubDate>Wed, 02 Jul 2008 20:52:09 +0000</pubDate>
		<dc:creator>Wim</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Snippets]]></category>

		<guid isPermaLink="false">http://www.depl0y.com/?p=108</guid>
		<description><![CDATA[I have been looking around the net to find the best way to keep track of the total number of concurrent sessions. There is one piece of code, that is posted on a lot of websites. The code that I find mostly is the following (I editted [...]]]></description>
			<content:encoded><![CDATA[<p>I have been looking around the net to find the best way to keep track of the total number of concurrent sessions. There is one piece of code, that is posted on a lot of websites.</p>
<p>The code that I find mostly is the following (I editted a bit, to match my coding style):</p>
<p><em><strong>Global.asax</strong></em><br />
[csharp]
protected void Application_Start(object sender, EventArgs e)<br />
{<br />
	Application["SessionCount"] = 0;<br />
}</p>
<p>protected void Session_Start(object sender, EventArgs e)<br />
{<br />
	Application.Lock();</p>
<p>	int sessionCount = 0;</p>
<p>	if (Int32.TryParse(Application["SessionCount"].ToString(), out sessionCount))<br />
		sessionCount++;</p>
<p>	Application["SessionCount"] = sessionCount;<br />
	Application.UnLock();<br />
}</p>
<p>protected void Session_End(object sender, EventArgs e)<br />
{</p>
<p>	Application.Lock();</p>
<p>	int sessionCount = 0;</p>
<p>	if (Int32.TryParse(Application["SessionCount"].ToString(), out sessionCount))<br />
		sessionCountâ€“;</p>
<p>	Application["SessionCount"] = sessionCount;<br />
	Application.UnLock();<br />
}<br />
[/csharp]
<p>The thing I am wondering about is, what happens when the site gets a lot of load. Does locking the Application object make the site slower? Because I noticed that when you lock the Application object, no pages get served to users.</p>
<p>What happens with multi-threaded web applications? Are all threads blocked during the lock?</p>
<p>I don&#8217;t know the answer yet, but I think this is a nice thing to try to find out.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sortedbits.com/current-session-count/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Converting 70.000+ XML Documents</title>
		<link>http://www.sortedbits.com/converting-70000-xml-documents/</link>
		<comments>http://www.sortedbits.com/converting-70000-xml-documents/#comments</comments>
		<pubDate>Wed, 02 Jul 2008 09:49:56 +0000</pubDate>
		<dc:creator>Wim</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Job]]></category>

		<guid isPermaLink="false">http://www.depl0y.com/?p=107</guid>
		<description><![CDATA[At work I have written a XML converter, which should (daily) convert over 70.000 XML documents to a different format. Depending on some attributes set in the XML file, a couple of values of elements should be extracted and inserted in the XML document again (but in [...]]]></description>
			<content:encoded><![CDATA[<p>At work I have written a XML converter, which should (daily) convert over 70.000 XML documents to a different format. Depending on some attributes set in the XML file, a couple of values of elements should be extracted and inserted in the XML document again (but in a different location).</p>
<p>Please don&#8217;t ask me why I need this, but it is a terrible solution for something that would sound so simple.</p>
<p>The only way to solve this problem (which I saw) was opening each individual file, load them in an XmlDocument object and track down the elements and attributes I needed using xPath.</p>
<p>Only halfway the script the memory consumption of the tool goes through the roof (around ~1.4GB), at least on our Windows 2003 server, where the application is running.</p>
<p>When I run that application on my Windows Vista x64 machine, there is no problem at all and the memory consumption is at ~20MB.</p>
<p>I tried finding memory leaks in my application, by using a couple of different profile applications, but they didn&#8217;t detect any large memory leaks, that could cause these problems.</p>
<p>What the heck is going on?</p>
<p>*sigh*: somehow the server puts all the 70.000 XML files in 5 files, and that way it creates 5 files of around 800MB. I disabled that script and now the memory consumption on the server is also back to normal.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sortedbits.com/converting-70000-xml-documents/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Protected: VraagOns.nl, pretty cool techniques</title>
		<link>http://www.sortedbits.com/vraagonsnl-pretty-cool-techniques/</link>
		<comments>http://www.sortedbits.com/vraagonsnl-pretty-cool-techniques/#comments</comments>
		<pubDate>Tue, 01 Jul 2008 05:09:22 +0000</pubDate>
		<dc:creator>Wim</dc:creator>
				<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://www.depl0y.com/?p=103</guid>
		<description><![CDATA[There is no excerpt because this is a protected post.]]></description>
			<content:encoded><![CDATA[<form action="http://www.sortedbits.com/wp-pass.php" method="post">
<p>This post is password protected. To view it please enter your password below:</p>
<p><label for="pwbox-103">Password:<br />
<input name="post_password" id="pwbox-103" type="password" size="20" /></label><br />
<input type="submit" name="Submit" value="Submit" /></p></form>
]]></content:encoded>
			<wfw:commentRss>http://www.sortedbits.com/vraagonsnl-pretty-cool-techniques/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>BlogEngine.net</title>
		<link>http://www.sortedbits.com/blogenginenet/</link>
		<comments>http://www.sortedbits.com/blogenginenet/#comments</comments>
		<pubDate>Sat, 10 May 2008 21:16:07 +0000</pubDate>
		<dc:creator>Wim</dc:creator>
				<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://www.depl0y.com/?p=95</guid>
		<description><![CDATA[I am currently in the progress of moving to a .NET based blog. Currently I am looking at BlogEngine.NET but it misses some vital features. For example, I like the option I added to this blog to attach files to a post and have a nice file [...]]]></description>
			<content:encoded><![CDATA[<p>I am currently in the progress of moving to a .NET based blog. Currently I am looking at BlogEngine.NET but it misses some vital features.</p>
<p>For example, I like the option I added to this blog to attach files to a post and have a nice file list beneath my post listing the files. There is no real option in BlogEngine.NET to do this, so I added this feature in the latest release of BE (1.3.1.0).</p>
<p>Here&#8217;s a screenie of the admin screen and a sample post:<br />
<a href="http://www.depl0y.com/admin_add_entry.png" rel="thumbnail" rel="wp-prettyPhoto[95]"><img width="500px" src="http://www.depl0y.com/admin_add_entry.png" /></a></p>
<p><a href="http://www.depl0y.com/post.png" rel="thumbnail" rel="wp-prettyPhoto[95]"><img width="500px" src="http://www.depl0y.com/post.png" /></a></p>
<p>If you are a BlogEngine.NET user and you would like to attach files to your post, just gimme a sign and I will see if I can supply some sources. Maybe it&#8217;s not the nicest solution, but I requested this option on their forums too.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sortedbits.com/blogenginenet/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Things that keep me occupied this week</title>
		<link>http://www.sortedbits.com/things-that-keep-me-occupied-this-week/</link>
		<comments>http://www.sortedbits.com/things-that-keep-me-occupied-this-week/#comments</comments>
		<pubDate>Wed, 07 May 2008 20:14:59 +0000</pubDate>
		<dc:creator>Wim</dc:creator>
				<category><![CDATA[blog]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Call of Duty 4]]></category>
		<category><![CDATA[Games]]></category>
		<category><![CDATA[Xbox 360]]></category>

		<guid isPermaLink="false">http://www.depl0y.com/personal/things-that-keep-me-occupied-this-week</guid>
		<description><![CDATA[This week will be a very busy week&#8230; I just got back from a 10 day break from work, but things never stop piling up&#8230;. it seems. Next to work I got a couple of projects that keep me busy at home too. There&#8217;s computer stuff: Getting [...]]]></description>
			<content:encoded><![CDATA[<p>This week will be a very busy week&#8230; I just got back from a 10 day break from work, but things never stop piling up&#8230;. it seems.</p>
<p>Next to work I got a couple of projects that keep me busy at home too. There&#8217;s computer stuff:</p>
<p><strong>Getting my server to run fluintly on MacOS-X</strong><br />
Because that stupid HyperV kept crashing on me lately, I got the idea to actually install MacOS-X on my server, to see how it performs. My server is a pretty hefty beast, running a nice Quadcore Q9450 CPU and 12 GB of RAM. I got it installed yesterday and it seems pretty stable, accept some &#8216;minor&#8217; issues (will post that later on).</p>
<p>If you want to read more of my wining, click &#8216;more&#8217;&#8230;.<span id="more-89"></span></p>
<p><strong>Silverlight</strong><br />
As I am always trying to learn new techniques, I tried the Silverlight 2.0 beta and I want to develop a nice replacement site for my daughters&#8217; websites. At the moment both my daughters have a website, but I want to integrate that in a nice new Silverlight based website.</p>
<p><strong>Grand Theft Auto IV</strong><br />
I only had time to play 5 to 10 minutes of play since I got this game. It looks pretty nice, but I wonder if it will interest me as much as its predecessor.</p>
<p><strong>Call of Duty 4</strong><br />
Even less play time on this game the last month or so. I downloaded the new map-pack, but I didn&#8217;t even play those maps yet.</p>
<p>Next to computer stuff, there&#8217;s also more&#8230;real-life work to do:</p>
<p><strong>Tidy up my garden</strong><br />
I need to do loads of stuff in my garden. Move the sandbox-play-thing of my oldest daughter (not as easy as it sounds). I want to extend my garden to actually use the last 4 meters of it, because it is a waste of space at the moment and I also want to put up a terrace-roof over half my terrace, but again&#8230; too little time, to much work.</p>
<p><strong>Some small jobs in the house</strong><br />
You know, paint some fences, do some floor maintenance, etc etc.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sortedbits.com/things-that-keep-me-occupied-this-week/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XmlDocument fluent interface</title>
		<link>http://www.sortedbits.com/xmldocument-fluent-interface/</link>
		<comments>http://www.sortedbits.com/xmldocument-fluent-interface/#comments</comments>
		<pubDate>Wed, 27 Feb 2008 08:01:13 +0000</pubDate>
		<dc:creator>Wim</dc:creator>
				<category><![CDATA[blog]]></category>
		<category><![CDATA[C#]]></category>

		<guid isPermaLink="false">http://www.depl0y.com/personal/xmldocument-fluent-interface</guid>
		<description><![CDATA[First I want to make clear, this is not my code, but it works brilliantly so I wanted to share it with you anyway. Check out the following link: improve.dk &#8211; XmlDocument fluent interface. You can download the class mentioned in the post here. At the bottom [...]]]></description>
			<content:encoded><![CDATA[<p>First I want to make clear, this is not my code, but it works brilliantly so I wanted to share it with you anyway.</p>
<p>Check out the following link:<br />
<a href="http://www.improve.dk/blog/2007/10/20/xmldocument-fluent-interface">improve.dk &#8211; XmlDocument fluent interface</a>.</p>
<p>You can download the class mentioned in the post here. At the bottom of the post.</p>
<p>This is a bit of sample code.</p>
<pre>
XmlOutput xo = new XmlOutput()
	.XmlDeclaration()
	.Node("Error").InnerText("Exception occured: " + ex.Message);
return xo.GetXmlDocument();
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.sortedbits.com/xmldocument-fluent-interface/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XNA: VMWare and XNA GS are no friends</title>
		<link>http://www.sortedbits.com/xna-vmware-and-xna-gs-are-no-friends/</link>
		<comments>http://www.sortedbits.com/xna-vmware-and-xna-gs-are-no-friends/#comments</comments>
		<pubDate>Wed, 23 Jan 2008 21:34:44 +0000</pubDate>
		<dc:creator>Wim</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[XNA]]></category>
		<category><![CDATA[virtualization]]></category>
		<category><![CDATA[vmware]]></category>
		<category><![CDATA[Xbox 360]]></category>

		<guid isPermaLink="false">http://www.depl0y.com/c/xna-vmware-and-xna-gs-are-no-friends</guid>
		<description><![CDATA[So, I found the solution for my problem with XNA GS 2.0. It seems that XNA GS 2.0 could not handle the virtual adapters installed on my development system. I deinstalled VMWare and all was fine! If you want to know what my problem was, read it [...]]]></description>
			<content:encoded><![CDATA[<p>So, I found the solution for my problem with XNA GS 2.0.</p>
<p>It seems that XNA GS 2.0 could not handle the virtual adapters installed on my development system. I deinstalled VMWare and all was fine!</p>
<p>If you want to know what my problem was, read it <a href="http://www.depl0y.com/personal/xna-cannot-connect-my-pc-to-my-xbox">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sortedbits.com/xna-vmware-and-xna-gs-are-no-friends/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

