<?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/"
	xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Vadim's Weblog</title>
	<atom:link href="http://vkreynin.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://vkreynin.wordpress.com</link>
	<description>Never stop learning.</description>
	<lastBuildDate>Wed, 26 Aug 2009 11:54:05 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='vkreynin.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/1173064e3df3d2dd6e336993810ee5b5?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Vadim's Weblog</title>
		<link>http://vkreynin.wordpress.com</link>
	</image>
			<item>
		<title>Microsoft is offering free e-book featuring Virtualization.</title>
		<link>http://vkreynin.wordpress.com/2009/08/26/microsoft-is-offering-free-e-book-featuring-virtualization/</link>
		<comments>http://vkreynin.wordpress.com/2009/08/26/microsoft-is-offering-free-e-book-featuring-virtualization/#comments</comments>
		<pubDate>Wed, 26 Aug 2009 11:54:05 +0000</pubDate>
		<dc:creator>Vadim</dc:creator>
				<category><![CDATA[Book]]></category>

		<guid isPermaLink="false">http://vkreynin.wordpress.com/2009/08/26/microsoft-is-offering-free-e-book-featuring-virtualization/</guid>
		<description><![CDATA[ If you don’t mind to give Microsoft your e-mail (they probably already have it), you can get Understanding Microsoft Virtualization Solutions e-book for free.
This book is written by Mitch Tulloch, who wrote about two dozens of Windows related books.
Understanding Microsoft Virtualization Solutions covers Microsoft’s wide range of virtualization technologies.
Download your free copy!
   [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vkreynin.wordpress.com&blog=1150196&post=352&subd=vkreynin&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a href="http://vkreynin.files.wordpress.com/2009/08/97807356933711.jpg"><img style="border-bottom:0;border-left:0;display:inline;margin-left:0;border-top:0;margin-right:0;border-right:0;" title="9780735693371[1]" border="0" alt="9780735693371[1]" align="right" src="http://vkreynin.files.wordpress.com/2009/08/97807356933711_thumb.jpg?w=154&#038;h=186" width="154" height="186" /></a> If you don’t mind to give Microsoft your e-mail (they probably already have it), you can get <a href="http://csna01.libredigital.com/?urmvs17u33">Understanding Microsoft Virtualization Solutions e-book for free</a>.</p>
<p>This book is written by <a href="http://www.mtit.com/about.htm">Mitch Tulloch</a>, who wrote about two dozens of <a href="http://www.amazon.com/Mitch-Tulloch/e/B001IGV428/ref=ntt_athr_dp_pel_1">Windows related books</a>.</p>
<p>Understanding Microsoft Virtualization Solutions covers Microsoft’s wide range of virtualization technologies.</p>
<p><a href="http://csna01.libredigital.com/?urmvs17u33">Download your free copy!</a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vkreynin.wordpress.com/352/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vkreynin.wordpress.com/352/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vkreynin.wordpress.com/352/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vkreynin.wordpress.com/352/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vkreynin.wordpress.com/352/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vkreynin.wordpress.com/352/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vkreynin.wordpress.com/352/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vkreynin.wordpress.com/352/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vkreynin.wordpress.com/352/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vkreynin.wordpress.com/352/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vkreynin.wordpress.com&blog=1150196&post=352&subd=vkreynin&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://vkreynin.wordpress.com/2009/08/26/microsoft-is-offering-free-e-book-featuring-virtualization/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0bdbc8162336851af022196f897d6200?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vkreynin</media:title>
		</media:content>

		<media:content url="http://vkreynin.files.wordpress.com/2009/08/97807356933711_thumb.jpg" medium="image">
			<media:title type="html">9780735693371[1]</media:title>
		</media:content>
	</item>
		<item>
		<title>Creating an &#8220;M&#8221; Project in VS 2010.</title>
		<link>http://vkreynin.wordpress.com/2009/06/01/creating-an-m-project-in-vs-2010/</link>
		<comments>http://vkreynin.wordpress.com/2009/06/01/creating-an-m-project-in-vs-2010/#comments</comments>
		<pubDate>Mon, 01 Jun 2009 15:23:00 +0000</pubDate>
		<dc:creator>Vadim</dc:creator>
				<category><![CDATA[Oslo]]></category>
		<category><![CDATA[VS2010 CTP]]></category>
		<category><![CDATA[oslo vs2010]]></category>

		<guid isPermaLink="false">http://vkreynin.wordpress.com/2009/06/01/creating-an-m-project-in-vs-2010/</guid>
		<description><![CDATA[When you install “Oslo”, installation also adds one “Oslo” template in your Visual Studio.&#160; It’s “M” Project.&#160; 
 
However, if you try to create a new “M” Project or open an existing one you probably will get the following error:
This method uses CAS policy, which has been obsoleted by the .NET Framework.&#160; In order to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vkreynin.wordpress.com&blog=1150196&post=348&subd=vkreynin&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>When you install “Oslo”, installation also adds one “Oslo” template in your Visual Studio.&#160; It’s “M” Project.&#160; </p>
<p><a href="http://vkreynin.files.wordpress.com/2009/06/oslo_vs_plugin.png"><img style="display:inline;border-width:0;" title="oslo_vs_plug-in" border="0" alt="oslo_vs_plug-in" src="http://vkreynin.files.wordpress.com/2009/06/oslo_vs_plugin_thumb.png?w=599&#038;h=429" width="599" height="429" /></a> </p>
<p>However, if you try to create a new “M” Project or open an existing one you probably will get the following error:</p>
<blockquote><p>This method uses CAS policy, which has been <strong>obsoleted</strong> by the .NET Framework.&#160; In order to enable CAS policy for compatibility reasons, please use the legacyCasPolicy configuration switch. Please see <a href="http://go2.microsoft.com/fwlink/?LinkId=131738">http://go2.microsoft.com/fwlink/?LinkId=131738</a> for more information.</p>
</blockquote>
<p>English is not my first language, as you probably already realized that by reading my blog, but I thought that word obsolete is an adjective.&#160; In this Microsoft error message it’s used like a verb “obsoleted”.</p>
<p>Well, enough about English.&#160; I’m sure that you can take any of my posts and have a lot of fun criticizing my English.&#160; If you want to do so, please do.&#160; Your criticism probably will improve my English.</p>
<p>Let’s get back to the error.&#160; You can follow the link in the message to read more about <a href="http://msdn.microsoft.com/en-us/library/dd233103(VS.100).aspx">Security Changes in the .NET Framework 4</a>.&#160; One of the thing you can find there is that Code Access Security (CAS) policy got replaced by Windows Software Restriction Policies (SRP).</p>
<blockquote><p>Historically, the .NET Framework has provided code access security (CAS) policy as a mechanism to tightly control and configure the capabilities of managed code. Although CAS policy is powerful, it can be complicated and restrictive. Furthermore, CAS policy does not apply to native applications, so its security guarantees are limited. System administrators should look to operating system-level solutions such as Windows Software Restriction Policies (SRP) as a replacement for CAS policy, because SRP policies provide simple trust mechanisms that apply to both managed and native code. As a security policy solution, SRP is simpler and provides better security guarantees than CAS.</p>
</blockquote>
<p>However, it doesn’t tell us how we can fix our problem.&#160; After some research, I got across documentation about <a href="http://msdn.microsoft.com/en-us/library/dd409253(VS.100).aspx">legacyCasPolicy Element</a>.</p>
<p>Next I open devenv.exe.config file that is in C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE folder and added following line:</p>
<div>
<div class="csharpcode">
<pre class="alt"><span class="lnum">   1:</span> <span class="kwrd">&lt;</span><span class="html">legacyCasPolicy</span> <span class="attr">enabled</span><span class="kwrd">=&quot;true&quot;</span><span class="kwrd">/&gt;</span></pre>
</p></div>
</div>
<p>You should add this line inside &lt;runtime&gt; element.</p>
<div>
<div class="csharpcode">
<pre class="alt">
<pre class="alteven"><span class="kwrd"><img style="display:inline;border-width:0;" title="M_proj_error" border="0" alt="M_proj_error" src="http://vkreynin.files.wordpress.com/2009/06/m_proj_error.png?w=575&#038;h=178" width="575" height="178" /> </span></pre>
</pre></div>
</div>
<p>I understand that “Oslo” and VS 2010 are both Beta products so far.&#160; I’m sure that Microsoft will resolve this problem in future releases.&#160; </p>
<p>I realize that this is not the best solution.&#160; However, it worked for me.&#160; Please let me know if you can find a better solution.</p>
<p><a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2fvkreynin.wordpress.com%2f2009%2f06%2f01%2fcreating-an-m-project-in-vs-2010%2f"><img border="0" alt="kick it on DotNetKicks.com" src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fvkreynin.wordpress.com%2f2009%2f06%2f01%2fcreating-an-m-project-in-vs-2010%2f" /></a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vkreynin.wordpress.com/348/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vkreynin.wordpress.com/348/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vkreynin.wordpress.com/348/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vkreynin.wordpress.com/348/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vkreynin.wordpress.com/348/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vkreynin.wordpress.com/348/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vkreynin.wordpress.com/348/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vkreynin.wordpress.com/348/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vkreynin.wordpress.com/348/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vkreynin.wordpress.com/348/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vkreynin.wordpress.com&blog=1150196&post=348&subd=vkreynin&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://vkreynin.wordpress.com/2009/06/01/creating-an-m-project-in-vs-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0bdbc8162336851af022196f897d6200?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vkreynin</media:title>
		</media:content>

		<media:content url="http://vkreynin.files.wordpress.com/2009/06/oslo_vs_plugin_thumb.png" medium="image">
			<media:title type="html">oslo_vs_plug-in</media:title>
		</media:content>

		<media:content url="http://vkreynin.files.wordpress.com/2009/06/m_proj_error.png" medium="image">
			<media:title type="html">M_proj_error</media:title>
		</media:content>

		<media:content url="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fvkreynin.wordpress.com%2f2009%2f06%2f01%2fcreating-an-m-project-in-vs-2010%2f" medium="image">
			<media:title type="html">kick it on DotNetKicks.com</media:title>
		</media:content>
	</item>
		<item>
		<title>New May 2009 CTP for Microsoft &#8220;Oslo&#8221; is out.</title>
		<link>http://vkreynin.wordpress.com/2009/05/29/new-may-2009-ctp-for-microsoft-oslo-is-out/</link>
		<comments>http://vkreynin.wordpress.com/2009/05/29/new-may-2009-ctp-for-microsoft-oslo-is-out/#comments</comments>
		<pubDate>Fri, 29 May 2009 14:50:19 +0000</pubDate>
		<dc:creator>Vadim</dc:creator>
				<category><![CDATA[Oslo]]></category>

		<guid isPermaLink="false">http://vkreynin.wordpress.com/2009/05/29/new-may-2009-ctp-for-microsoft-oslo-is-out/</guid>
		<description><![CDATA[If you don’t know what “Oslo” is, it’s set of future Microsoft modeling technologies.&#160; You can find out more at “Oslo” Developer Center.
In this release Microsoft finally is going to include “Quadrant”, a GUI tool for “Oslo”.
As for previous CTPs you need .NET Framework 3.5 SP1, SQL Server 2008, and VS 2008 or higher.&#160; New [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vkreynin.wordpress.com&blog=1150196&post=343&subd=vkreynin&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><img style="display:inline;margin-left:0;margin-right:0;border-width:0;" title="Oslo_install" border="0" alt="Oslo_install" align="right" src="http://vkreynin.files.wordpress.com/2009/05/oslo_install.png?w=342&#038;h=257" width="342" height="257" />If you don’t know what “Oslo” is, it’s set of future Microsoft modeling technologies.&#160; You can find out more at <a href="http://msdn.microsoft.com/en-us/oslo/default.aspx">“Oslo” Developer Center</a>.</p>
<p>In this release Microsoft finally is going to include <a href="http://msdn.microsoft.com/en-us/library/dd857529(VS.85).aspx">“Quadrant”,</a> a GUI tool for “Oslo”.</p>
<p>As for previous CTPs you need .NET Framework 3.5 SP1, SQL Server 2008, and VS 2008 or higher.&#160; New install for “Oslo” allows to to customize the installation.&#160; If you select “Install Now” instead of “Customize” option, all of “Oslo” is going to be installed.&#160; It includes: “Quadrant, “Oslo” repository, and “Oslo” SDK.&#160; You must to have administrator privileges in order to run installation.&#160; You can find more details by reading <a title="Microsoft &quot;Oslo&quot; May 2009 CTP Release Notes" href="http://msdn.microsoft.com/en-us/oslo/releasenotes.aspx">Release Notes</a>.</p>
<p>In case you have&#160; a previous CTP installed on your machine, you must uninstall it before installing new CTP.&#160; Also you must drops the &#8216;Repository&#8217; from your SQL 2008 database.&#160; </p>
<p>Microsoft also provides us with <a href="http://blogs.msdn.com/modelcitizen/archive/2009/05/27/samples-for-the-oslo-may-ctp.aspx">May CTP Samples</a>.</p>
<p>After installing “Oslo” you can find template for “M” Project in your Visual Studio:</p>
<p><a href="http://vkreynin.files.wordpress.com/2009/05/oslo_vs_plugin.png"><img style="display:inline;border-width:0;" title="oslo_vs_plug-in" border="0" alt="oslo_vs_plug-in" src="http://vkreynin.files.wordpress.com/2009/05/oslo_vs_plugin_thumb.png?w=546&#038;h=388" width="546" height="388" /></a> </p>
<p>“Oslo” installation also is going to create Repository in your SQL 2008. </p>
</p>
</p>
</p>
</p>
</p>
</p>
<p><a href="http://vkreynin.files.wordpress.com/2009/05/oslo_sql.png"><img style="display:inline;margin-left:0;margin-right:0;border-width:0;" title="oslo_sql" border="0" alt="oslo_sql" src="http://vkreynin.files.wordpress.com/2009/05/oslo_sql_thumb.png?w=241&#038;h=383" width="241" height="383" /></a> </p>
<p><a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2fvkreynin.wordpress.com%2f2009%2f05%2f29%2fnew-may-2009-ctp-for-microsoft-oslo-is-out%2f"><img border="0" alt="kick it on DotNetKicks.com" src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fvkreynin.wordpress.com%2f2009%2f05%2f29%2fnew-may-2009-ctp-for-microsoft-oslo-is-out%2f" /></a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vkreynin.wordpress.com/343/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vkreynin.wordpress.com/343/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vkreynin.wordpress.com/343/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vkreynin.wordpress.com/343/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vkreynin.wordpress.com/343/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vkreynin.wordpress.com/343/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vkreynin.wordpress.com/343/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vkreynin.wordpress.com/343/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vkreynin.wordpress.com/343/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vkreynin.wordpress.com/343/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vkreynin.wordpress.com&blog=1150196&post=343&subd=vkreynin&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://vkreynin.wordpress.com/2009/05/29/new-may-2009-ctp-for-microsoft-oslo-is-out/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0bdbc8162336851af022196f897d6200?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vkreynin</media:title>
		</media:content>

		<media:content url="http://vkreynin.files.wordpress.com/2009/05/oslo_install.png" medium="image">
			<media:title type="html">Oslo_install</media:title>
		</media:content>

		<media:content url="http://vkreynin.files.wordpress.com/2009/05/oslo_vs_plugin_thumb.png" medium="image">
			<media:title type="html">oslo_vs_plug-in</media:title>
		</media:content>

		<media:content url="http://vkreynin.files.wordpress.com/2009/05/oslo_sql_thumb.png" medium="image">
			<media:title type="html">oslo_sql</media:title>
		</media:content>

		<media:content url="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fvkreynin.wordpress.com%2f2009%2f05%2f29%2fnew-may-2009-ctp-for-microsoft-oslo-is-out%2f" medium="image">
			<media:title type="html">kick it on DotNetKicks.com</media:title>
		</media:content>
	</item>
		<item>
		<title>Keywords as variables/identifiers. Why?</title>
		<link>http://vkreynin.wordpress.com/2009/05/13/keywords-as-variablesidentifiers-why/</link>
		<comments>http://vkreynin.wordpress.com/2009/05/13/keywords-as-variablesidentifiers-why/#comments</comments>
		<pubDate>Wed, 13 May 2009 22:51:05 +0000</pubDate>
		<dc:creator>Vadim</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[VB.NET]]></category>

		<guid isPermaLink="false">http://vkreynin.wordpress.com/2009/05/13/keywords-as-variablesidentifiers-why/</guid>
		<description><![CDATA[I use words variable and identifier interchangeably.
Have you ever tried to use a keyword as a name of your variable?&#160; Until recently I thought it was impossible.&#160; However, C# and VB.NET allow developers to use keywords as variables.


string string = '' '';




Dim String As String = '' ''


If you try to compile this code, compiler [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vkreynin.wordpress.com&blog=1150196&post=330&subd=vkreynin&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I use words <em>variable</em> and <em>identifier</em> interchangeably.</p>
<p>Have you ever tried to use a keyword as a name of your variable?&#160; Until recently I thought it was impossible.&#160; However, C# and VB.NET allow developers to use keywords as variables.</p>
<pre>
<pre class="brush: csharp;">
string string = '' '';
</pre>
</pre>
<pre>
<pre class="brush: csharp;">
Dim String As String = '' ''
</pre>
</pre>
<p>If you try to compile this code, compiler will generate three errors: </p>
<ul>
<li><font face="Courier New">Error&#160;&#160;&#160; 1&#160;&#160;&#160; <font color="#ff0000">Identifier expected; &#8217;string&#8217; is a keyword </font></font></li>
<li><font face="Courier New">Error&#160;&#160;&#160; 2&#160;&#160;&#160; <font color="#ff0000">Identifier expected</font></font> </li>
<li><font face="Courier New">Error&#160;&#160;&#160; 3&#160;&#160;&#160; <font color="#ff0000">Invalid expression term &#8217;string&#8217;</font></font>&#160; </li>
</ul>
<p>To fix this error in C# you just prefix your variable with an @ character.&#160; In VB.NET you surround the variable with square brackets [].&#160; A variable or identifier with an @ prefix is called a <em>verbatim identifier</em>.</p>
<pre>
<pre class="brush: csharp;">
string @string = '' '';
</pre>
</pre>
<pre>
<pre class="brush: csharp;">
Dim [String] As String = '' ''
</pre>
</pre>
<p>Why anybody would use keywords as variables?&#160; To me it looks like a very BAD practice.&#160; Variables/identifiers must be descriptive.&#160; Can you think of any keyword that would be descriptive enough to use in your code as a variable?</p>
<p>I found in <a href="http://msdn.microsoft.com/en-us/library/aa664670(VS.71).aspx">C# specification</a> why Microsoft includes <em>verbatim identifier</em> in their languages:</p>
<blockquote>
<p>The prefix &quot;<code>@</code>&quot; enables the use of keywords as identifiers, which is useful when interfacing with other programming languages. The character <code>@</code> is not actually part of the identifier, so the identifier might be seen in other languages as a normal identifier, without the prefix.</p>
</blockquote>
<p>I still believe it’s a BAD idea.</p>
<p>I also understand that if today I don’t see any reason to use verbatim identifiers, tomorrow I might find a perfect application for it.</p>
<p>If you use it and have a good reason, please let me know.</p>
<p><a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2fvkreynin.wordpress.com%2f2009%2f05%2f13%2fkeywords-as-variablesidentifiers-why%2f"><img border="0" alt="kick it on DotNetKicks.com" src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fvkreynin.wordpress.com%2f2009%2f05%2f13%2fkeywords-as-variablesidentifiers-why%2f" /></a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vkreynin.wordpress.com/330/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vkreynin.wordpress.com/330/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vkreynin.wordpress.com/330/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vkreynin.wordpress.com/330/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vkreynin.wordpress.com/330/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vkreynin.wordpress.com/330/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vkreynin.wordpress.com/330/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vkreynin.wordpress.com/330/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vkreynin.wordpress.com/330/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vkreynin.wordpress.com/330/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vkreynin.wordpress.com&blog=1150196&post=330&subd=vkreynin&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://vkreynin.wordpress.com/2009/05/13/keywords-as-variablesidentifiers-why/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0bdbc8162336851af022196f897d6200?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vkreynin</media:title>
		</media:content>

		<media:content url="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fvkreynin.wordpress.com%2f2009%2f05%2f13%2fkeywords-as-variablesidentifiers-why%2f" medium="image">
			<media:title type="html">kick it on DotNetKicks.com</media:title>
		</media:content>
	</item>
		<item>
		<title>Shop-2009.com Spam</title>
		<link>http://vkreynin.wordpress.com/2009/05/10/shop-2009-com-spam/</link>
		<comments>http://vkreynin.wordpress.com/2009/05/10/shop-2009-com-spam/#comments</comments>
		<pubDate>Sun, 10 May 2009 18:21:44 +0000</pubDate>
		<dc:creator>Vadim</dc:creator>
				<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://vkreynin.wordpress.com/2009/05/10/shop-2009-com-spam/</guid>
		<description><![CDATA[Yesterday I received this email from my wife’s hotmail account:
Dear friend:
&#160;&#160;&#160;&#160;&#160;&#160; how are you doing recently ? I would like to introduce you a very good company which i knew.They can offer you all kinds of electronical products which you need, such as motorcycles, laptops, mobile phones, digial cameras, TV LCD, xbox, ps3, gps, MP3/4, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vkreynin.wordpress.com&blog=1150196&post=329&subd=vkreynin&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Yesterday I received this email from my wife’s hotmail account:</p>
<blockquote><p>Dear friend:</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160; how are you doing recently ? I would like to introduce you a very good company which i knew.They can offer you all kinds of electronical products which you need, such as motorcycles, laptops, mobile phones, digial cameras, TV LCD, xbox, ps3, gps, MP3/4, etc. Please take some time to have a look at it,there must be something you&#8217;d like to purchase.</p>
<p>the website:&#160;&#160;&#160;&#160; shop-2009.com</p>
<p>Their Email:&#160;&#160;&#160;&#160; shop09@188.com</p>
<p>Hope you have a good mood in shopping from their company!</p>
</blockquote>
<p>Actually this spam was sent to everybody in her contacts.</p>
<p>I did let her know that someone got access to her hotmail account and urged her to change the hotmail password.</p>
<p>An hour later she told me that when she tries to sent an email the same text appears in all her messages.&#160; After further investigation, it was obvious that the message was in her mail signature.</p>
<p><a href="http://email.about.com/od/windowslivehotmailtips/ss/wt042503wlh.htm">How to change your Live Hotmail signature.</a></p>
<p>What happen is that my wife logged on someone else computer that had a <a href="http://en.wikipedia.org/wiki/Key_logger">key logger</a>, and her hotmail identity was stolen.&#160; She is lucky that her password wasn’t change.</p>
<p>I took following steps to make sure that my wife’s account doesn’t have any foreign fingerprints left.&#160; <strong>Please let me know if you think that I missed something.</strong></p>
<ol>
<li><a href="http://email.about.com/cs/hotmailtips/qt/et100201.htm">Changed Password</a>.</li>
<li>Changed the secure question and the secret answer.</li>
<li>Made sure that there’s no alternate e-mail addresses that we don’t recognize.</li>
<li>Made sure that there’s no mobile number and PIN we don’t recognize.</li>
<li>Made sure that we recognize all emails in “Send and receive mail form other e-mail accounts section.</li>
<li>Made sure that our “Vacation reply” wasn’t tempered.</li>
<li>Removed tempered signature.</li>
<li>Made sure that Reply-to address wasn’t tempered.</li>
</ol>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vkreynin.wordpress.com/329/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vkreynin.wordpress.com/329/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vkreynin.wordpress.com/329/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vkreynin.wordpress.com/329/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vkreynin.wordpress.com/329/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vkreynin.wordpress.com/329/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vkreynin.wordpress.com/329/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vkreynin.wordpress.com/329/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vkreynin.wordpress.com/329/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vkreynin.wordpress.com/329/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vkreynin.wordpress.com&blog=1150196&post=329&subd=vkreynin&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://vkreynin.wordpress.com/2009/05/10/shop-2009-com-spam/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0bdbc8162336851af022196f897d6200?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vkreynin</media:title>
		</media:content>
	</item>
		<item>
		<title>Integrate FxCop 1.36 &amp; VS 2008</title>
		<link>http://vkreynin.wordpress.com/2009/05/09/integrate-fxcop-1-36-vs-2008/</link>
		<comments>http://vkreynin.wordpress.com/2009/05/09/integrate-fxcop-1-36-vs-2008/#comments</comments>
		<pubDate>Sat, 09 May 2009 13:33:17 +0000</pubDate>
		<dc:creator>Vadim</dc:creator>
				<category><![CDATA[FxCop]]></category>
		<category><![CDATA[VS2008]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://vkreynin.wordpress.com/2009/05/09/integrate-fxcop-1-36-vs-2008/</guid>
		<description><![CDATA[Update: Visual Studio Team System (VSTS) has Code Analysis feature.&#160; It’s not FxCop but it does serve the same purpose and is built using the same engine as FxCop.&#160; Unfortunately I’m working with VS Professional that doesn’t include Code Analysis.
I was looking for way to integrate FxCop 1.36 with Visual Studio&#160;&#160; 2008.&#160; I even asked [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vkreynin.wordpress.com&blog=1150196&post=325&subd=vkreynin&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><strong>Update:</strong> Visual Studio Team System (VSTS) has Code Analysis feature.&#160; It’s not FxCop but it does serve the same purpose and is built using the same engine as FxCop.&#160; Unfortunately I’m working with VS Professional that doesn’t include Code Analysis.</p>
<p><a href="http://vkreynin.files.wordpress.com/2009/05/fxcop.png"><img style="display:inline;border-width:0;margin:0 0 0 5px;" title="FxCop" border="0" alt="FxCop" align="right" src="http://vkreynin.files.wordpress.com/2009/05/fxcop_thumb.png?w=120&#038;h=141" width="120" height="141" /></a>I was looking for way to integrate <a href="http://msdn.microsoft.com/en-us/library/bb429476(VS.80).aspx">FxCop 1.36</a> with Visual Studio&#160;&#160; 2008.&#160; I even asked the same <a href="http://stackoverflow.com/questions/841704/how-to-integrate-fxcop-and-vs-2008">question on StackOverflow</a>.&#160; The only answer I got was a <a href="http://msdn.microsoft.com/en-us/library/bb429389(VS.80).aspx">link to MSDN article</a>.&#160; I follow direction in the article but wasn’t successful.&#160; I assume that if you have only one project and don’t have a solution it will work for you but it’s not my case.&#160; I have many project in my solution.&#160; However, the MSDN article got me going.&#160; Let me present you my solution of integration.</p>
<h4>Create FxCop project using FxCop GUI. </h4>
<p><strong>Important:      <br /></strong>- Save the project file in the same directory where your solution is.     <br />- Project name must be the file name of your solution (including .sln extension).&#160; For example: If your solution file is MySolution.sln, the FxCop project name must be MySolution.sln.FxCop.</p>
<p><a href="http://vkreynin.files.wordpress.com/2009/05/fxcopnameproject.png"><img style="display:inline;border-width:0;" title="FxCop - Name project" border="0" alt="FxCop - Name project" src="http://vkreynin.files.wordpress.com/2009/05/fxcopnameproject_thumb.png?w=630&#038;h=484" width="630" height="484" /></a> </p>
<h4>Add FxCop to VS External Tools.</h4>
<p>In Visual Studio select Tools-&gt;External Tools…&#160; You should see the External Tools dialog box.</p>
<p>You must fill following fields:</p>
<table border="0" cellspacing="0" cellpadding="2" width="658">
<tbody>
<tr>
<td valign="top" width="122">Title:</td>
<td valign="top" width="534">FxCop</td>
</tr>
<tr>
<td valign="top" width="125">Command:</td>
<td valign="top" width="532">C:\Program Files\Microsoft FxCop 1.36\FxCopCmd.exe</td>
</tr>
<tr>
<td valign="top" width="127">Arguments:</td>
<td valign="top" width="530">/c /p:&quot;$(SolutionDir)\$(SolutionFileName).fxcop&quot; /cXsl:&quot;C:\Program Files\Microsoft FxCop 1.36\Xml\VSConsoleOutput.xsl&quot;</td>
</tr>
<tr>
<td valign="top" width="129">Initial Directory:</td>
<td valign="top" width="529">C:\Program Files\Microsoft FxCop 1.36</td>
</tr>
<tr>
<td valign="top" width="129">Use output window</td>
<td valign="top" width="529">Must be checked</td>
</tr>
</tbody>
</table>
<p>If you install FxCop in different location than C:\Program Files\Microsoft FxCop 1.36, you need to use your own path.</p>
<p><a href="http://vkreynin.files.wordpress.com/2009/05/fxcopexternaltools.png"><img style="display:inline;border-width:0;" title="FxCop-ExternalTools" border="0" alt="FxCop-ExternalTools" src="http://vkreynin.files.wordpress.com/2009/05/fxcopexternaltools_thumb.png?w=498&#038;h=484" width="498" height="484" /></a> </p>
</p>
<p>In case you want to <a href="http://en.wikipedia.org/wiki/Grok">grok</a> the switches we use, you can read more about <a href="http://msdn.microsoft.com/en-us/library/bb429449(VS.80).aspx">FxCopCmd options</a>.</p>
<h4>Run FxCop from Visual Studio.</h4>
<p>We are done.&#160; Now we just need to run FxCop.</p>
<p>Tools –&gt; FxCop should analyze your code and because we checked “Use Output window” in External Tools dialog result should appear in VS output window.</p>
<p><a href="http://vkreynin.files.wordpress.com/2009/05/fxcopresult.png"><img style="display:inline;border-width:0;" title="FxCop - result" border="0" alt="FxCop - result" src="http://vkreynin.files.wordpress.com/2009/05/fxcopresult_thumb.png?w=644&#038;h=312" width="644" height="312" /></a></p>
<p> <a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2fvkreynin.wordpress.com%2f2009%2f05%2f09%2fintegrate-fxcop-1-36-vs-2008%2f"><img border="0" alt="kick it on DotNetKicks.com" src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fvkreynin.wordpress.com%2f2009%2f05%2f09%2fintegrate-fxcop-1-36-vs-2008%2f" /></a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vkreynin.wordpress.com/325/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vkreynin.wordpress.com/325/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vkreynin.wordpress.com/325/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vkreynin.wordpress.com/325/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vkreynin.wordpress.com/325/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vkreynin.wordpress.com/325/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vkreynin.wordpress.com/325/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vkreynin.wordpress.com/325/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vkreynin.wordpress.com/325/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vkreynin.wordpress.com/325/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vkreynin.wordpress.com&blog=1150196&post=325&subd=vkreynin&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://vkreynin.wordpress.com/2009/05/09/integrate-fxcop-1-36-vs-2008/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0bdbc8162336851af022196f897d6200?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vkreynin</media:title>
		</media:content>

		<media:content url="http://vkreynin.files.wordpress.com/2009/05/fxcop_thumb.png" medium="image">
			<media:title type="html">FxCop</media:title>
		</media:content>

		<media:content url="http://vkreynin.files.wordpress.com/2009/05/fxcopnameproject_thumb.png" medium="image">
			<media:title type="html">FxCop - Name project</media:title>
		</media:content>

		<media:content url="http://vkreynin.files.wordpress.com/2009/05/fxcopexternaltools_thumb.png" medium="image">
			<media:title type="html">FxCop-ExternalTools</media:title>
		</media:content>

		<media:content url="http://vkreynin.files.wordpress.com/2009/05/fxcopresult_thumb.png" medium="image">
			<media:title type="html">FxCop - result</media:title>
		</media:content>

		<media:content url="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fvkreynin.wordpress.com%2f2009%2f05%2f09%2fintegrate-fxcop-1-36-vs-2008%2f" medium="image">
			<media:title type="html">kick it on DotNetKicks.com</media:title>
		</media:content>
	</item>
		<item>
		<title>Underfoot is not an Overhead.</title>
		<link>http://vkreynin.wordpress.com/2009/04/21/underfoot-is-not-an-overhead/</link>
		<comments>http://vkreynin.wordpress.com/2009/04/21/underfoot-is-not-an-overhead/#comments</comments>
		<pubDate>Tue, 21 Apr 2009 13:28:44 +0000</pubDate>
		<dc:creator>Vadim</dc:creator>
				<category><![CDATA[Software Engineering]]></category>

		<guid isPermaLink="false">http://vkreynin.wordpress.com/2009/04/21/underfoot-is-not-an-overhead/</guid>
		<description><![CDATA[Jeff Brown is trying to coin a new term “Underfoot”.
You can use underfoot where you use overhead.&#160; Here’s an example from Underfoot post:
Building this proposed multi-tier platform will have an initial 20% underfoot while we retool and lay the foundation.&#160; Once that is done we will be 50% more efficient though we will have to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vkreynin.wordpress.com&blog=1150196&post=315&subd=vkreynin&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a href="http://www.blogger.com/profile/09075745057339916352">Jeff Brown</a> is trying to coin a new term “<a href="http://blog.bits-in-motion.com/2009/04/underfoot.html">Underfoot</a>”.</p>
<p>You can use underfoot where you use overhead.&#160; Here’s an example from <a href="http://blog.bits-in-motion.com/2009/04/underfoot.html">Underfoot post</a>:</p>
<blockquote><p>Building this proposed multi-tier platform will have an initial <em>20% underfoot</em> while we retool and lay the foundation.&#160; Once that is done we will be <em>50%</em> more efficient though we will have to spend an additional recurring <em>5% underfoot</em> to keep the axles greased.</p>
</blockquote>
<p><strong>Overhead</strong> means expense; how much extra you pay to get something.    <br /><strong>Underfoot</strong> means investment; how much you invest in order to get more of something.</p>
<p>I personally like “Underfoot”; however, it’s not a household term.&#160; If you like it too, use it in your blogs and link to <a href="http://blog.bits-in-motion.com/2009/04/underfoot.html">Jeff’s post</a>.</p>
<p>I linked to it three times in this short article.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vkreynin.wordpress.com/315/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vkreynin.wordpress.com/315/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vkreynin.wordpress.com/315/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vkreynin.wordpress.com/315/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vkreynin.wordpress.com/315/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vkreynin.wordpress.com/315/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vkreynin.wordpress.com/315/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vkreynin.wordpress.com/315/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vkreynin.wordpress.com/315/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vkreynin.wordpress.com/315/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vkreynin.wordpress.com&blog=1150196&post=315&subd=vkreynin&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://vkreynin.wordpress.com/2009/04/21/underfoot-is-not-an-overhead/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0bdbc8162336851af022196f897d6200?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vkreynin</media:title>
		</media:content>
	</item>
		<item>
		<title>ReSharper 4.5 complains about my private fields.</title>
		<link>http://vkreynin.wordpress.com/2009/04/09/resharper-45-complains-about-my-private-fields/</link>
		<comments>http://vkreynin.wordpress.com/2009/04/09/resharper-45-complains-about-my-private-fields/#comments</comments>
		<pubDate>Thu, 09 Apr 2009 20:48:27 +0000</pubDate>
		<dc:creator>Vadim</dc:creator>
				<category><![CDATA[ReSharper]]></category>

		<guid isPermaLink="false">http://vkreynin.wordpress.com/2009/04/09/resharper-45-complains-about-my-private-fields/</guid>
		<description><![CDATA[I just downloaded ReSharper 4.5.&#160; I probably will blog more about my experience with it.
The first thing I noticed after upgrading to R# 4.5 is that I got a lot of complains (blue underlines) about my naming of non public fields.&#160; 
 
Like many developers I like to prefix my private variables with an underscore.&#160; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vkreynin.wordpress.com&blog=1150196&post=311&subd=vkreynin&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><font size="2">I just <a title="ReSharper 4.5" href="http://www.jetbrains.com/resharper/download/">downloaded ReSharper 4.5</a>.&#160; I probably will blog more about my experience with it.</font></p>
<p><font size="2">The first thing I noticed after upgrading to R# 4.5 is that I got a lot of complains (blue underlines) about my naming of non public fields.&#160; </font></p>
<p><a href="http://vkreynin.files.wordpress.com/2009/04/rs-privatefields.png"><font color="#2a2a2a" size="2"><img title="RS_privateFields" style="border-right:0;border-top:0;display:inline;border-left:0;border-bottom:0;" height="145" alt="RS_privateFields" src="http://vkreynin.files.wordpress.com/2009/04/rs-privatefields-thumb.png?w=791&#038;h=145" width="791" border="0" /></font></a><font size="2"> </font></p>
<p><font size="2">Like many developers I like to prefix my private variables with an underscore.&#160; I know for the fact that I’m not alone that what <a href="http://www.wintellect.com/TechnicalBioDetail.aspx?Tech=5">Jeff Prosie</a> says:</font></p>
<blockquote><p><font size="2">As a matter of personal preference, I typically prefix the names of private fields with an underscore (for example, <font face="Consolas">_connection</font>).&#160; When I read the code back after a time away, this makes it obvious to me which fields are not intended for public consumption.&#160; This conventions is used quite a lot in the .NET Framework – for example, in <font face="con">System.NET.HttpWebRequest</font> and <font face="con">System.Web.HttpContext</font> – but it is not used throughout.</font></p>
</blockquote>
<p><font size="2">Next thing I did is to check what controls this blue lines.&#160; I went to ReSharper/Options/Naming Style.</font></p>
<p><a href="http://vkreynin.files.wordpress.com/2009/04/rs-namingstyle-dialog.png"><font color="#2a2a2a" size="2"><img title="RS_NamingStyle_Dialog" style="border-right:0;border-top:0;display:inline;border-left:0;border-bottom:0;" height="680" alt="RS_NamingStyle_Dialog" src="http://vkreynin.files.wordpress.com/2009/04/rs-namingstyle-dialog-thumb.png?w=680&#038;h=680" width="680" border="0" /></font></a><font size="2"> </font></p>
<p><font size="2">To satisfy my naming style I click on Edit button to open an Edit “Instance fields (non public)” Rule Settings… window and typed an underscore (_) in Name Prefix text box:</font></p>
<p><a href="http://vkreynin.files.wordpress.com/2009/04/rs-privatefields-fixed.png"><img title="RS_privateFields_Fixed" style="border-right:0;border-top:0;display:inline;border-left:0;border-bottom:0;" height="693" alt="RS_privateFields_Fixed" src="http://vkreynin.files.wordpress.com/2009/04/rs-privatefields-fixed-thumb.png?w=693&#038;h=693" width="693" border="0" /></a>&#160;</p>
<p>After modifying “Instance fields (not public)” rule, ReSharper will not complain when we&#160; add underscore to our private, internal, and protected fields.&#160; But what if we want this rule for private fields only.&#160; Well, in this case we need to define our own rule.&#160; Naming Style window has two list boxes, the second one (User defined naming rules) allows us to define our own rule.</p>
<p><a href="http://vkreynin.files.wordpress.com/2009/04/rs-exstendednamingrule.png"><img title="RS_ExstendedNamingRule" style="border-right:0;border-top:0;display:inline;border-left:0;border-bottom:0;" height="556" alt="RS_ExstendedNamingRule" src="http://vkreynin.files.wordpress.com/2009/04/rs-exstendednamingrule-thumb.png?w=774&#038;h=556" width="774" border="0" /></a></p>
<p><a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2fvkreynin.wordpress.com%2f2009%2f04%2f09%2fresharper-45-complains-about-my-private-fields%2f"><img src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fvkreynin.wordpress.com%2f2009%2f04%2f09%2fresharper-45-complains-about-my-private-fields%2f" border="0" alt="kick it on DotNetKicks.com" /></a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vkreynin.wordpress.com/311/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vkreynin.wordpress.com/311/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vkreynin.wordpress.com/311/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vkreynin.wordpress.com/311/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vkreynin.wordpress.com/311/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vkreynin.wordpress.com/311/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vkreynin.wordpress.com/311/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vkreynin.wordpress.com/311/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vkreynin.wordpress.com/311/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vkreynin.wordpress.com/311/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vkreynin.wordpress.com&blog=1150196&post=311&subd=vkreynin&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://vkreynin.wordpress.com/2009/04/09/resharper-45-complains-about-my-private-fields/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0bdbc8162336851af022196f897d6200?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vkreynin</media:title>
		</media:content>

		<media:content url="http://vkreynin.files.wordpress.com/2009/04/rs-privatefields-thumb.png" medium="image">
			<media:title type="html">RS_privateFields</media:title>
		</media:content>

		<media:content url="http://vkreynin.files.wordpress.com/2009/04/rs-namingstyle-dialog-thumb.png" medium="image">
			<media:title type="html">RS_NamingStyle_Dialog</media:title>
		</media:content>

		<media:content url="http://vkreynin.files.wordpress.com/2009/04/rs-privatefields-fixed-thumb.png" medium="image">
			<media:title type="html">RS_privateFields_Fixed</media:title>
		</media:content>

		<media:content url="http://vkreynin.files.wordpress.com/2009/04/rs-exstendednamingrule-thumb.png" medium="image">
			<media:title type="html">RS_ExstendedNamingRule</media:title>
		</media:content>

		<media:content url="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fvkreynin.wordpress.com%2f2009%2f04%2f09%2fresharper-45-complains-about-my-private-fields%2f" medium="image">
			<media:title type="html">kick it on DotNetKicks.com</media:title>
		</media:content>
	</item>
		<item>
		<title>Stub HttpContext</title>
		<link>http://vkreynin.wordpress.com/2009/03/23/stub-htttpcontext/</link>
		<comments>http://vkreynin.wordpress.com/2009/03/23/stub-htttpcontext/#comments</comments>
		<pubDate>Tue, 24 Mar 2009 01:42:28 +0000</pubDate>
		<dc:creator>Vadim</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[TDD]]></category>
		<category><![CDATA[Cache]]></category>
		<category><![CDATA[HttpContext]]></category>
		<category><![CDATA[MbUnit]]></category>
		<category><![CDATA[Rhino.Mocks]]></category>
		<category><![CDATA[System.Web.Abstractions]]></category>

		<guid isPermaLink="false">http://vkreynin.wordpress.com/?p=292</guid>
		<description><![CDATA[Have you ever tried to TDD objects that use HttpContext, HttpResponse, or HttpRequest?  If you did, you probably created wrappers for these classes.  No more.  With .NET 3.5 Microsoft gave us System.Web.Abstractions.dll that extends System.Web namespace.  In this post I’d like to show an example how to stub HttpContext.
Here’s the system under test:

   [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vkreynin.wordpress.com&blog=1150196&post=292&subd=vkreynin&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Have you ever tried to TDD objects that use HttpContext, HttpResponse, or HttpRequest?  If you did, you probably created wrappers for these classes.  No more.  With .NET 3.5 Microsoft gave us System.Web.Abstractions.dll that extends System.Web namespace.  In this post I’d like to show an example how to stub HttpContext.</p>
<p>Here’s the system under test:</p>
<pre class="brush: csharp;">
    public class MyContext
    {
        private readonly HttpContextBase _context;

        // This constructor is called by production system.
        public MyContext() : this(new HttpContextWrapper(HttpContext.Current))
        {}

        // Test calls this constructor
        public MyContext(HttpContextBase context)
        {
            _context = context;
        }

        public bool IsItemCached(string item)
        {
            return _context.Cache[item] != null;
        }
    }
</pre>
<p>Here are the unit tests:</p>
<pre class="brush: csharp;">
    [TestFixture]
    public class MyContextTester
    {
        private HttpContextBase _contextStub;
        private MyContext _myContext;

        [SetUp]
        public void StartTest()
        {
            _contextStub = MockRepository.GenerateMock&lt;HttpContextBase&gt;();
            _myContext = new MyContext(_contextStub);
        }

        [Test]
        public void IsItemCached_if_Cache_item_is_null_return_false()
        {
            _contextStub.Stub(x =&gt; x.Cache).Return(HttpRuntime.Cache);
            Assert.IsFalse(_myContext.IsItemCached(&quot;NotThere&quot;), &quot;False is expected.&quot;);
        }

        [Test]
        public void IsItemCached_if_Cache_item_is_NOT_null_return_true()
        {
            HttpRuntime.Cache.Insert(&quot;I am HERE&quot;, &quot;value&quot;);
            _contextStub.Stub(x =&gt; x.Cache).Return(HttpRuntime.Cache);
            Assert.IsTrue(_myContext.IsItemCached(&quot;I am HERE&quot;), &quot;True is expected.&quot;);
        }
    }
</pre>
<p><a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2fvkreynin.wordpress.com%2f2009%2f03%2f23%2fstub-htttpcontext%2f"><img src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fvkreynin.wordpress.com%2f2009%2f03%2f23%2fstub-htttpcontext%2f" border="0" alt="kick it on DotNetKicks.com" /></a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vkreynin.wordpress.com/292/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vkreynin.wordpress.com/292/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vkreynin.wordpress.com/292/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vkreynin.wordpress.com/292/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vkreynin.wordpress.com/292/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vkreynin.wordpress.com/292/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vkreynin.wordpress.com/292/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vkreynin.wordpress.com/292/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vkreynin.wordpress.com/292/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vkreynin.wordpress.com/292/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vkreynin.wordpress.com&blog=1150196&post=292&subd=vkreynin&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://vkreynin.wordpress.com/2009/03/23/stub-htttpcontext/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0bdbc8162336851af022196f897d6200?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vkreynin</media:title>
		</media:content>

		<media:content url="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fvkreynin.wordpress.com%2f2009%2f03%2f23%2fstub-htttpcontext%2f" medium="image">
			<media:title type="html">kick it on DotNetKicks.com</media:title>
		</media:content>
	</item>
		<item>
		<title>Review of Roy Osherove&#8217;s review.</title>
		<link>http://vkreynin.wordpress.com/2009/03/20/review-of-roy-osheroves-review/</link>
		<comments>http://vkreynin.wordpress.com/2009/03/20/review-of-roy-osheroves-review/#comments</comments>
		<pubDate>Sat, 21 Mar 2009 03:31:26 +0000</pubDate>
		<dc:creator>Vadim</dc:creator>
				<category><![CDATA[TDD]]></category>

		<guid isPermaLink="false">http://vkreynin.wordpress.com/2009/03/20/review-of-roy-osheroves-review/</guid>
		<description><![CDATA[I just finished watching video by Roy Osherove where he reviews Unit Tests for NetDinner MVC source code.
I liked the video and many points Roy makes are very valid.&#160; However, let me concentrate on the things I didn’t like.

During the video Roy complains how tired he is because it’s 2 AM and he has to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vkreynin.wordpress.com&blog=1150196&post=290&subd=vkreynin&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I just finished watching video by <a title="ISerializable - Roy Osherove&#39;s Blog" href="http://weblogs.asp.net/rosherove/default.aspx">Roy Osherove</a> where <a href="http://weblogs.asp.net/rosherove/archive/2009/03/20/test-review-1-nerddinner.aspx">he reviews Unit Tests</a> for <a href="http://nerddinner.codeplex.com/">NetDinner MVC source code</a>.</p>
<p>I liked the video and many points Roy makes are very valid.&#160; However, let me concentrate on the things I didn’t like.</p>
<ol>
<li>During the video Roy complains how tired he is because it’s 2 AM and he has to record the video.&#160; Who’s fault is that?&#160; I’m as a viewer prefer for my presenter to be fresh and energetic.&#160; Roy, I want to you to teach me, I don’t want to know that you’re tired and that your wife and the kid sleep in another room. </li>
<li>Roy also criticize people who created a test with multiple asserts.&#160; In that particular case the test method had two asserts.&#160; I personally don’t see big problem to use more than one Assert as long as the test name describe what is tested.&#160; He also gives viewers a doctor analogy which I fail to find appropriate. </li>
<li>I was very surprised when after complaining about multiple asserts in a single unit test, Roy recommends using RowTest feature of MbUnit / NUnit.&#160; Roy, how do you describe what is the difference between the first row and second row tests? About three years ago when I was a rookie in TDD world,&#160; I switched to MbUnit from NUnit because of RowTest attribute.&#160; NUnit didn’t have this feature at the time.&#160; However, I stopped using RowTest in my unit tests because it’s not clear what is tested.&#160; However, I still use this RowTests for my integration tests.      <br />Here are couple of reasons why I stopped using RotTest attribute in my unit tests.
<p><strong>a.</strong> Let assume that you have a test that fails if a value is null or empty string.&#160; Here’s an example:       </p>
<pre>
<pre class="brush: csharp;">
[Row(&amp;quot;&amp;quot;)]
[Row(null)]
public void UserName_property_should_faile_when_value_is_empty_or_null(string userName)
</pre>
</pre>
<p>The problem is that when one of row test fails, it’s hard to see which one failed. </p>
<p><strong>b.</strong> I use TestDriven.NET.&#160; When you run Row tests, TestDriven.NET executes all the row tests. To execute only one row I had to comment out all the other rows. </p>
<p>Instead of example above, I prefer to create two tests like this: </p>
<pre>
<pre class="brush: csharp;">
[Test]
public void UserName_property_should_faile_when_value_is_empty()

[Test]
public void UserName_property_should_faile_when_value_is_null()
</pre>
</pre>
</li>
</ol>
<p>Roy, no hard feelings.&#160; I personally believe that you are doing a great job of educating people of better development practices.&#160; I myself learned a lot from you.&#160; Just don’t talk like Roy’s way is the only way.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vkreynin.wordpress.com/290/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vkreynin.wordpress.com/290/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vkreynin.wordpress.com/290/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vkreynin.wordpress.com/290/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vkreynin.wordpress.com/290/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vkreynin.wordpress.com/290/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vkreynin.wordpress.com/290/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vkreynin.wordpress.com/290/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vkreynin.wordpress.com/290/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vkreynin.wordpress.com/290/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vkreynin.wordpress.com&blog=1150196&post=290&subd=vkreynin&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://vkreynin.wordpress.com/2009/03/20/review-of-roy-osheroves-review/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0bdbc8162336851af022196f897d6200?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vkreynin</media:title>
		</media:content>
	</item>
	</channel>
</rss>