<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" media="screen" href="/styles/xslt/rss.xslt"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:c9="http://channel9.msdn.com">
<channel>
	<title>Channel 9 Forums - Tech Off - FxCop vs Static Constructors</title>
	<atom:link rel="self" type="application/rss+xml" href="http://channel9.msdn.com/Forums/rss"></atom:link>
	<image>
		<url>http://mschnlnine.vo.llnwd.net/d1/Dev/App_Themes/C9/images/feedimage.png</url>
		<title>Channel 9 Forums - Tech Off - FxCop vs Static Constructors</title>
		<link>http://channel9.msdn.com/Forums</link>
	</image>
	<description>Channel 9 keeps you up to date with the latest news and behind the scenes info from Microsoft that developers love to keep up with. From LINQ to SilverLight – Watch videos and hear about all the cool technologies coming and the people behind them.</description>
	<link>http://channel9.msdn.com/Forums</link>
	<language>en</language>
	<pubDate>Tue, 21 May 2013 23:42:52 GMT</pubDate>
	<lastBuildDate>Tue, 21 May 2013 23:42:52 GMT</lastBuildDate>
	<generator>Rev9</generator>
	<c9:totalResults>4</c9:totalResults>
	<c9:pageCount>-4</c9:pageCount>
	<c9:pageSize>-1</c9:pageSize>
	<item>
		<title>Tech Off - FxCop vs Static Constructors</title>
		<description><![CDATA[<p>Hi All,<br>
<br>
FxCop displays particular vehemence towards static constructors: it actually displays vehemence towards a lot of things but time is short. The argument proposed by the FxCop&nbsp;documentation is that, &quot;Initializing static data in explicit static constructors results
 in less performant code.&quot;, which is fair enough. But what if the static constructor is being used for
<u>more</u> then just initialising&nbsp;static data?<br>
<br>
For example I use a static logging class and initialise the logger in&nbsp;the static constructor. The logger is thread safe and I prefer to have a one stop shop for logging to make it for application wide changes. But back to the original&nbsp;question, why does FxCop
 object to static constructors when they present a valid useful purpose? Is there a reason why thread safe static constructors should be avoided?<br>
<br>
Regards,<br>
Aaron</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/7423-FxCop-vs-Static-Constructors/7423#7423</link>
		<pubDate>Thu, 20 May 2004 10:38:42 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/7423-FxCop-vs-Static-Constructors/7423#7423</guid>
		<dc:creator>aza</dc:creator>
		<slash:comments>4</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/aza/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - FxCop vs Static Constructors</title>
		<description><![CDATA[<p>I also have a question about FXCop.. it picks on naming conventions when I have named something that is a 3 letter acronym followed by capitalization of the next work. For instance FTPAddress.. it doesn't like that, but is FtpAddress actually preffered?
 I have seen some member names in the FCL that are named this way.. but since the rule was for acronyms up to 3 letters you capitalize, I am not sure.<br></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/7423-FxCop-vs-Static-Constructors/afe0df568b554256b69a9dea0110a58e#afe0df568b554256b69a9dea0110a58e</link>
		<pubDate>Thu, 20 May 2004 15:18:25 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/7423-FxCop-vs-Static-Constructors/afe0df568b554256b69a9dea0110a58e#afe0df568b554256b69a9dea0110a58e</guid>
		<dc:creator>JParrish</dc:creator>
		<slash:comments>4</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/JParrish/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - FxCop vs Static Constructors</title>
		<description><![CDATA[<p><blockquote>
<div>JParrish wrote:</div>
<div>I also have a question about FXCop.. it picks on naming conventions when I have named something that is a 3 letter acronym followed by capitalization of the next work. For instance FTPAddress.. it doesn't like that, but is FtpAddress actually preffered?
 I have seen some member names in the FCL that are named this way.. but since the rule was for acronyms up to 3 letters you capitalize, I am not sure.<br>
</div>
</blockquote>
<br>
<br>
The <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/cpconabbreviations.asp">
design guidelines state</a>: &quot;When using acronyms, use Pascal case or camel case for acronyms more than two characters long. For example, use HtmlButton or htmlButton. However, you should capitalize acronyms that consist of only two characters, such as System.IO
 instead of System.Io&quot;. I believe FxCop is trying to enforce those guidelines.</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/7423-FxCop-vs-Static-Constructors/cebb52b2051b4ab2b2199dea0110a5d2#cebb52b2051b4ab2b2199dea0110a5d2</link>
		<pubDate>Thu, 20 May 2004 19:21:45 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/7423-FxCop-vs-Static-Constructors/cebb52b2051b4ab2b2199dea0110a5d2#cebb52b2051b4ab2b2199dea0110a5d2</guid>
		<dc:creator>brantonb</dc:creator>
		<slash:comments>4</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/brantonb/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - FxCop vs Static Constructors</title>
		<description><![CDATA[<p>Aha.. that is obvious now. I had thought it said 3 letters.. thanks for the correction =)<br></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/7423-FxCop-vs-Static-Constructors/0085e2f6dbb646b68e3a9dea0110a5fb#0085e2f6dbb646b68e3a9dea0110a5fb</link>
		<pubDate>Fri, 21 May 2004 03:28:07 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/7423-FxCop-vs-Static-Constructors/0085e2f6dbb646b68e3a9dea0110a5fb#0085e2f6dbb646b68e3a9dea0110a5fb</guid>
		<dc:creator>JParrish</dc:creator>
		<slash:comments>4</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/JParrish/Discussions/RSS</wfw:commentRss>
	</item>
</channel>
</rss>