<?xml version="1.0"?>
<?xml-stylesheet href="/App_Themes/Rss/Rss.xsl" type="text/xsl"?>
<rss version="2.0" xmlns:snippetcenter="http://www.snippetcenter.org/">
<channel>
	<title>snippetcenter.org Comment Feed Singleton class</title>
	<link>http://www.snippetcenter.org/</link>
	<description>The newest Comments for Singleton class</description>
	<language>en-us</language>
	<copyright>snippetcenter.org</copyright>
	<generator>Advice: This is a RSS Document for reading in your RSS-Reader. Click here for mor informations.</generator>

	<image>
		<url>http://www.snippetcenter.org/Library/Media/Public/button_88x31.png</url>
		<title>snippetcenter.org</title>
		<link>http://www.snippetcenter.org/</link>
		<width>88</width>
		<height>31</height>
	</image>
	
	<item>
     <title><![CDATA[Kommentar von Cyron]]></title>
     <guid><![CDATA[http://www.snippetcenter.org/en/singleton-class-s1907.aspx]]></guid>
     <pubDate>Sun, 23 Jul 2006 18:44:24 GMT</pubDate>
     <description><![CDATA[Vielen Dank für den Hinweis. Ich werde das in meiner Templatesammlung sofort ändern.]]></description>
     <link><![CDATA[http://www.snippetcenter.org/en/singleton-class-s1907.aspx]]></link>
</item>

<item>
     <title><![CDATA[Kommentar von Marco Wiedemeyer]]></title>
     <guid><![CDATA[http://www.snippetcenter.org/en/singleton-class-s1907.aspx]]></guid>
     <pubDate>Sun, 23 Jul 2006 18:34:01 GMT</pubDate>
     <description><![CDATA[Hallo,
Im prinzip geht das zwar so, aber nachdem ich in meinem Blog (http://blog.mwiedemeyer.de/PermaLink,guid,70b0cbf8-1694-4716-b228-5c97aa3e7c56.aspx) darüber einmal geschrieben habe, habe ich dazu ein paar Hinweise erhalten. (Unbedingt die Kommentare und den Artikel von Dirk Primps ansehen)
Die "sauberste" (threadsafe) Methode ist diese:
private static readonly SingletonClass instance = new SingletonClass();
Dabei wird der instance Member readonly gemacht und durch static initialisierung ist das Property nur noch in dieser Form nötig:
.. get { return instance; }

Schönen gruß,
marco]]></description>
     <link><![CDATA[http://www.snippetcenter.org/en/singleton-class-s1907.aspx]]></link>
</item>



</channel>
</rss>
