<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments for David's Blog</title>
	<atom:link href="http://craz.net/blog/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://craz.net/blog</link>
	<description>The blog of David Hammerton</description>
	<lastBuildDate>Tue, 13 Mar 2012 20:27:07 +1100</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on A Generic Singleton Form Provider for C# by Greg</title>
		<link>http://craz.net/blog/2008/06/19/a-generic-singleton-form-provider-for-c/comment-page-1/#comment-18653</link>
		<dc:creator>Greg</dc:creator>
		<pubDate>Tue, 13 Mar 2012 20:27:07 +0000</pubDate>
		<guid isPermaLink="false">http://craz.new.eco-shout.org/blog/?p=5#comment-18653</guid>
		<description>This is a very interesting solution. Is this something that could also work with WPF Windows? Has anyone published a solution for WPF?</description>
		<content:encoded><![CDATA[<p>This is a very interesting solution. Is this something that could also work with WPF Windows? Has anyone published a solution for WPF?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Explicit Interface Implementations in C# by Tuzo</title>
		<link>http://craz.net/blog/2008/06/25/explicit-interface-implementations-in-c/comment-page-1/#comment-16704</link>
		<dc:creator>Tuzo</dc:creator>
		<pubDate>Sat, 01 Oct 2011 22:00:11 +0000</pubDate>
		<guid isPermaLink="false">http://craz.net/blog/?p=6#comment-16704</guid>
		<description>Interesting article.  As of .NET 4 it looks like RegistryKey no longer hides the Dispose method.  

Interface hiding also explains why the expansion of a using statement&#039;s finally block expands to:

if (resource != null) ((IDisposable)resource).Dispose();

If the resource was not cast to an IDisposable then, if the interface was hidden (implemented explicitly), it would not be possible to call Dispose on the resource object without the cast.</description>
		<content:encoded><![CDATA[<p>Interesting article.  As of .NET 4 it looks like RegistryKey no longer hides the Dispose method.  </p>
<p>Interface hiding also explains why the expansion of a using statement&#8217;s finally block expands to:</p>
<p>if (resource != null) ((IDisposable)resource).Dispose();</p>
<p>If the resource was not cast to an IDisposable then, if the interface was hidden (implemented explicitly), it would not be possible to call Dispose on the resource object without the cast.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on A Generic Singleton Form Provider for C# by Nanu</title>
		<link>http://craz.net/blog/2008/06/19/a-generic-singleton-form-provider-for-c/comment-page-1/#comment-15099</link>
		<dc:creator>Nanu</dc:creator>
		<pubDate>Wed, 22 Jun 2011 14:47:09 +0000</pubDate>
		<guid isPermaLink="false">http://craz.new.eco-shout.org/blog/?p=5#comment-15099</guid>
		<description>Excelente trabajo! Muchísimas gracias por compartirlo...!
Felicitaciones!!

Saludos cordiales desde Argentina</description>
		<content:encoded><![CDATA[<p>Excelente trabajo! Muchísimas gracias por compartirlo&#8230;!<br />
Felicitaciones!!</p>
<p>Saludos cordiales desde Argentina</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Explicit Interface Implementations in C# by James E</title>
		<link>http://craz.net/blog/2008/06/25/explicit-interface-implementations-in-c/comment-page-1/#comment-15019</link>
		<dc:creator>James E</dc:creator>
		<pubDate>Fri, 17 Jun 2011 04:32:25 +0000</pubDate>
		<guid isPermaLink="false">http://craz.net/blog/?p=6#comment-15019</guid>
		<description>Ha that&#039;s hilarious lol. I really enjoy you guys stuff, thanks for sharing. :)</description>
		<content:encoded><![CDATA[<p>Ha that&#8217;s hilarious lol. I really enjoy you guys stuff, thanks for sharing. <img src='http://craz.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on A Generic Singleton Form Provider for C# by Ganga</title>
		<link>http://craz.net/blog/2008/06/19/a-generic-singleton-form-provider-for-c/comment-page-1/#comment-14886</link>
		<dc:creator>Ganga</dc:creator>
		<pubDate>Fri, 10 Jun 2011 06:59:24 +0000</pubDate>
		<guid isPermaLink="false">http://craz.new.eco-shout.org/blog/?p=5#comment-14886</guid>
		<description>That&#039;s an amazing solution. I second your statement about being as elegant as it can get. 

Works like a charm.

Thanks heaps for that.</description>
		<content:encoded><![CDATA[<p>That&#8217;s an amazing solution. I second your statement about being as elegant as it can get. </p>
<p>Works like a charm.</p>
<p>Thanks heaps for that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on A Generic Singleton Form Provider for C# by jeff</title>
		<link>http://craz.net/blog/2008/06/19/a-generic-singleton-form-provider-for-c/comment-page-1/#comment-11208</link>
		<dc:creator>jeff</dc:creator>
		<pubDate>Thu, 25 Nov 2010 00:14:03 +0000</pubDate>
		<guid isPermaLink="false">http://craz.new.eco-shout.org/blog/?p=5#comment-11208</guid>
		<description>Its working now! thanks, How could I miss that...
using System.Windows.Forms;


Thanks a lot.</description>
		<content:encoded><![CDATA[<p>Its working now! thanks, How could I miss that&#8230;<br />
using System.Windows.Forms;</p>
<p>Thanks a lot.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on A Generic Singleton Form Provider for C# by jeff</title>
		<link>http://craz.net/blog/2008/06/19/a-generic-singleton-form-provider-for-c/comment-page-1/#comment-11198</link>
		<dc:creator>jeff</dc:creator>
		<pubDate>Wed, 24 Nov 2010 00:43:38 +0000</pubDate>
		<guid isPermaLink="false">http://craz.new.eco-shout.org/blog/?p=5#comment-11198</guid>
		<description>im getting this,



Error	2	The type or namespace name &#039;Form&#039; could not be found (are you missing a using directive or an assembly reference?)	


do i need to change the Form to the name of the Form i need to be singleton? how?

Thnak you.</description>
		<content:encoded><![CDATA[<p>im getting this,</p>
<p>Error	2	The type or namespace name &#8216;Form&#8217; could not be found (are you missing a using directive or an assembly reference?)	</p>
<p>do i need to change the Form to the name of the Form i need to be singleton? how?</p>
<p>Thnak you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Apple Lossless decoder with 24-bit support. by Jim Avera</title>
		<link>http://craz.net/blog/2009/09/08/apple-lossless-decoder-with-24-bit-support/comment-page-1/#comment-10910</link>
		<dc:creator>Jim Avera</dc:creator>
		<pubDate>Tue, 02 Nov 2010 18:54:01 +0000</pubDate>
		<guid isPermaLink="false">http://craz.net/blog/?p=11#comment-10910</guid>
		<description>FYI the copyright date printed when running the 9/5/2009 version (from http://craz.net/programs/itunes/files/alac_decoder-0.2.0.tgz) still shows as 2005.  Since the version is not embedded in the software, it is hard to tell which version one is looking at except from the name of the .tgz archive file. 

You might want to embed the version number (e.g. 0.2.0) and include it in the help message, so people can tell what version of a binary they are running.

Thanks for a great piece of software!</description>
		<content:encoded><![CDATA[<p>FYI the copyright date printed when running the 9/5/2009 version (from <a href="http://craz.net/programs/itunes/files/alac_decoder-0.2.0.tgz)" rel="nofollow">http://craz.net/programs/itunes/files/alac_decoder-0.2.0.tgz)</a> still shows as 2005.  Since the version is not embedded in the software, it is hard to tell which version one is looking at except from the name of the .tgz archive file. </p>
<p>You might want to embed the version number (e.g. 0.2.0) and include it in the help message, so people can tell what version of a binary they are running.</p>
<p>Thanks for a great piece of software!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on A Generic Singleton Form Provider for C# by Rizwan</title>
		<link>http://craz.net/blog/2008/06/19/a-generic-singleton-form-provider-for-c/comment-page-1/#comment-10482</link>
		<dc:creator>Rizwan</dc:creator>
		<pubDate>Wed, 22 Sep 2010 14:35:56 +0000</pubDate>
		<guid isPermaLink="false">http://craz.new.eco-shout.org/blog/?p=5#comment-10482</guid>
		<description>Thanks for your very nice example. Its really very worthful.</description>
		<content:encoded><![CDATA[<p>Thanks for your very nice example. Its really very worthful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on A Generic Singleton Form Provider for C# by Alvaro</title>
		<link>http://craz.net/blog/2008/06/19/a-generic-singleton-form-provider-for-c/comment-page-1/#comment-9947</link>
		<dc:creator>Alvaro</dc:creator>
		<pubDate>Wed, 21 Jul 2010 10:12:23 +0000</pubDate>
		<guid isPermaLink="false">http://craz.new.eco-shout.org/blog/?p=5#comment-9947</guid>
		<description>Hello David!
Thanks for the code above. It&#039;s perfect for me.
In my code I have included two more things:
1. MdiParent
2. BringToFront
The only thing I have changed is the GetInstance method:
public static T GetInstance(Form owner, params object[] args) where T : Form
        {
            if (!mTypeFormLookup.ContainsKey(typeof(T)))
            {
                Form f = (Form)Activator.CreateInstance(typeof(T), args);
                mTypeFormLookup.Add(typeof(T), f);
                f.Owner = owner;
                f.MdiParent = owner;
                f.FormClosed += new FormClosedEventHandler(remover);
            }
            else
            {
                Form f;
                mTypeFormLookup.TryGetValue(typeof(T),out f);
                f.BringToFront();
            }
            return (T)mTypeFormLookup[typeof(T)];
        }</description>
		<content:encoded><![CDATA[<p>Hello David!<br />
Thanks for the code above. It&#8217;s perfect for me.<br />
In my code I have included two more things:<br />
1. MdiParent<br />
2. BringToFront<br />
The only thing I have changed is the GetInstance method:<br />
public static T GetInstance(Form owner, params object[] args) where T : Form<br />
        {<br />
            if (!mTypeFormLookup.ContainsKey(typeof(T)))<br />
            {<br />
                Form f = (Form)Activator.CreateInstance(typeof(T), args);<br />
                mTypeFormLookup.Add(typeof(T), f);<br />
                f.Owner = owner;<br />
                f.MdiParent = owner;<br />
                f.FormClosed += new FormClosedEventHandler(remover);<br />
            }<br />
            else<br />
            {<br />
                Form f;<br />
                mTypeFormLookup.TryGetValue(typeof(T),out f);<br />
                f.BringToFront();<br />
            }<br />
            return (T)mTypeFormLookup[typeof(T)];<br />
        }</p>
]]></content:encoded>
	</item>
</channel>
</rss>

