<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:admin="http://webns.net/mvcb/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">
<channel>
    <title>.NET Toad - your .NET/C# resource</title>
    <link>http://www.dotnettoad.com/</link>
    <description>_ The easy way to improve your skills step by step - day by day.</description>
    <dc:language>en</dc:language>
    <generator>Serendipity 1.3.1 - http://www.s9y.org/</generator>
    <managingEditor>contact@dotnettoad.com</managingEditor>
<pubDate>Mon, 26 May 2008 10:47:28 GMT</pubDate>

    <image>
        <url>http://www.dotnettoad.com/templates/default/img/s9y_banner_small.png</url>
        <title>RSS: .NET Toad - your .NET/C# resource - _ The easy way to improve your skills step by step - day by day.</title>
        <link>http://www.dotnettoad.com/</link>
        <width>100</width>
        <height>21</height>
    </image>

<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/dotnettoad" /><feedburner:info uri="dotnettoad" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
    <title>when (not) to use the goto keyword</title>
    <link>http://feedproxy.google.com/~r/dotnettoad/~3/vTf1j-2aI4I/index.php</link>
    
    <comments>http://www.dotnettoad.com/index.php?/archives/20-when-not-to-use-the-goto-keyword.html#comments</comments>
    <wfw:comment>http://www.dotnettoad.com/wfwcomment.php?cid=20</wfw:comment>

    <slash:comments>3</slash:comments>
    <wfw:commentRss>http://www.dotnettoad.com/rss.php?version=2.0&amp;type=comments&amp;cid=20</wfw:commentRss>
    

    <author>nospam@example.com (Patrick Klug)</author>
    <content:encoded><![CDATA[
    <p>This article discusses some common usage scenarios of the <span style="color: rgb(0,0,255)">goto </span>keyword and shows alternative approaches.</p>  <p align="center">   <table cellspacing="0" cellpadding="2" width="690" border="0"><tbody>       <tr>         <td valign="top" width="690"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="201" alt="goto comic from xkcd.com" src="http://www.dotnettoad.com/uploads/WindowsLiveWriter/apragmaticviewonwhentousethegotostatemen_B38B/goto_png_narrow_5.png" width="686" border="0" /></td>       </tr>        <tr>         <td valign="top" width="690">           <p align="right"><font size="0">comic by xkcd.com <a onclick="javascript: pageTracker._trackPageview('/extlink/xkcd.com/292/');"  href="http://xkcd.com/292/" target="_blank">^</a></font></p>         </td>       </tr>     </tbody></table> </p>  <p>If someone would have asked me a few years ago when to use the goto keyword I would have answered (in capital letters): <strong>NEVER!! GOTO&#8217;S ARE EVIL! </strong>(and obviously you get attacked by raptors if you use them)</p>  <p>Like many I have been educated to have a emotional reaction when someone mentions the goto keyword. Emotions have nothing to do with good practices, so lets take a pragmatic look on some of the common usages of goto and see what the real value of the goto keyword is.</p>  <br /><a href="http://www.dotnettoad.com/index.php?/archives/20-when-not-to-use-the-goto-keyword.html#extended">Continue reading "when (not) to use the goto keyword"</a>
    <img src="http://feeds.feedburner.com/~r/dotnettoad/~4/vTf1j-2aI4I" height="1" width="1"/>]]></content:encoded>

    <pubDate>Mon, 19 May 2008 01:42:00 -0600</pubDate>
    <guid isPermaLink="false">http://www.dotnettoad.com/index.php?/archives/20-guid.html</guid>
    <category>best practices</category>
<category>C#</category>
<category>goto</category>
<category>keyword</category>

<feedburner:origLink>http://www.dotnettoad.com/index.php?/archives/20-when-not-to-use-the-goto-keyword.html</feedburner:origLink></item>
<item>
    <title>How to check if a string is empty</title>
    <link>http://feedproxy.google.com/~r/dotnettoad/~3/dlCbweg1py8/index.php</link>
    
    <comments>http://www.dotnettoad.com/index.php?/archives/19-How-to-check-if-a-string-is-empty.html#comments</comments>
    <wfw:comment>http://www.dotnettoad.com/wfwcomment.php?cid=19</wfw:comment>

    <slash:comments>6</slash:comments>
    <wfw:commentRss>http://www.dotnettoad.com/rss.php?version=2.0&amp;type=comments&amp;cid=19</wfw:commentRss>
    

    <author>nospam@example.com (Patrick Klug)</author>
    <content:encoded><![CDATA[
    <p>This blog will not only feature tips and hints but also show you the most basic and mundane things. This time I will show you how to check if a string is empty. A very basic task. Nevertheless there are a few ways of doing that. Some good, some even better.</p>  <br /><a href="http://www.dotnettoad.com/index.php?/archives/19-How-to-check-if-a-string-is-empty.html#extended">Continue reading "How to check if a string is empty"</a>
    <img src="http://feeds.feedburner.com/~r/dotnettoad/~4/dlCbweg1py8" height="1" width="1"/>]]></content:encoded>

    <pubDate>Wed, 14 May 2008 05:26:59 -0600</pubDate>
    <guid isPermaLink="false">http://www.dotnettoad.com/index.php?/archives/19-guid.html</guid>
    <category>empty</category>
<category>null</category>
<category>performance</category>
<category>string</category>

<feedburner:origLink>http://www.dotnettoad.com/index.php?/archives/19-How-to-check-if-a-string-is-empty.html</feedburner:origLink></item>
<item>
    <title>.NET Reflector</title>
    <link>http://feedproxy.google.com/~r/dotnettoad/~3/6WjmUPiqzNA/index.php</link>
    
    <comments>http://www.dotnettoad.com/index.php?/archives/18-.NET-Reflector.html#comments</comments>
    <wfw:comment>http://www.dotnettoad.com/wfwcomment.php?cid=18</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.dotnettoad.com/rss.php?version=2.0&amp;type=comments&amp;cid=18</wfw:commentRss>
    

    <author>nospam@example.com (Patrick Klug)</author>
    <content:encoded><![CDATA[
    
<p><a href="http://www.dotnettoad.com/uploads/WindowsLiveWriter/2892925292d7.NETreflector_10F01/reflector_2.png"><img width="144" height="177" border="0" align="right" style="border: 0px none ;" alt="reflector" src="http://www.dotnettoad.com/uploads/WindowsLiveWriter/2892925292d7.NETreflector_10F01/reflector_thumb.png" /></a>Besides pointing you to <a href="http://www.dotnettoad.com/index.php?/plugin/tag/websites">useful websites</a> and showing you useful <a href="http://www.dotnettoad.com/index.php?/plugin/tag/productivity">productivity tips</a> I will also showcase some of the best tools out there. This is the first of a number of posts which focuses on developer tools.</p>  <p>Lutz Roeder&#8217;s .NET Reflector enables you to browse and search through the class hierarchies of .NET assemblies even if you don&#8217;t have the code for them. </p>  <p>The README describes the application as follows:</p>  <blockquote>   <p>Reflector is a class browser for .NET components. It allows browsing and searching the meta data, IL instructions, resources and XML documentation stored in a .NET assembly.</p> </blockquote>  <p>The .NET Reflector is in my opinion one of the most useful tools for serious .NET developers. It simply allows you to see what happens behind the cover of the .NET framework.</p>  <br /><a href="http://www.dotnettoad.com/index.php?/archives/18-.NET-Reflector.html#extended">Continue reading ".NET Reflector"</a>
    <img src="http://feeds.feedburner.com/~r/dotnettoad/~4/6WjmUPiqzNA" height="1" width="1"/>]]></content:encoded>

    <pubDate>Mon, 12 May 2008 03:51:12 -0600</pubDate>
    <guid isPermaLink="false">http://www.dotnettoad.com/index.php?/archives/18-guid.html</guid>
    <category>tools</category>

<feedburner:origLink>http://www.dotnettoad.com/index.php?/archives/18-.NET-Reflector.html</feedburner:origLink></item>
<item>
    <title>How to check if the user is an Administrator</title>
    <link>http://feedproxy.google.com/~r/dotnettoad/~3/USyfZAZwk78/index.php</link>
    
    <comments>http://www.dotnettoad.com/index.php?/archives/17-How-to-check-if-the-user-is-an-Administrator.html#comments</comments>
    <wfw:comment>http://www.dotnettoad.com/wfwcomment.php?cid=17</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.dotnettoad.com/rss.php?version=2.0&amp;type=comments&amp;cid=17</wfw:commentRss>
    

    <author>nospam@example.com (Patrick Klug)</author>
    <content:encoded><![CDATA[
    
<p>The following C# code snippet allows you to check if the current user is an administrator.</p>  <br /><a href="http://www.dotnettoad.com/index.php?/archives/17-How-to-check-if-the-user-is-an-Administrator.html#extended">Continue reading "How to check if the user is an Administrator"</a>
    <img src="http://feeds.feedburner.com/~r/dotnettoad/~4/USyfZAZwk78" height="1" width="1"/>]]></content:encoded>

    <pubDate>Wed, 07 May 2008 03:14:07 -0600</pubDate>
    <guid isPermaLink="false">http://www.dotnettoad.com/index.php?/archives/17-guid.html</guid>
    <category>security</category>

<feedburner:origLink>http://www.dotnettoad.com/index.php?/archives/17-How-to-check-if-the-user-is-an-Administrator.html</feedburner:origLink></item>
<item>
    <title>Navigate backward and forward using keyboard shortcuts</title>
    <link>http://feedproxy.google.com/~r/dotnettoad/~3/bZ3ByIHpqOA/index.php</link>
    
    <comments>http://www.dotnettoad.com/index.php?/archives/16-Navigate-backward-and-forward-using-keyboard-shortcuts.html#comments</comments>
    <wfw:comment>http://www.dotnettoad.com/wfwcomment.php?cid=16</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.dotnettoad.com/rss.php?version=2.0&amp;type=comments&amp;cid=16</wfw:commentRss>
    

    <author>nospam@example.com (Patrick Klug)</author>
    <content:encoded><![CDATA[
    
<p>Making use of keyboard shortcuts can improve your effectivness. This is the first of a number of posts which focuses on keyboard shortcuts in Visual Studio. </p>  <p>You probably know that you can right click on a method in code and click on &#8216;<strong>Go To Definition</strong>&#8217; (or press <b>F12</b>) to get to the method definition. A very handy feature. Often I find myself looking at the method and then I want to go back were I was before I clicked on Go To Definition.</p>  <br /><a href="http://www.dotnettoad.com/index.php?/archives/16-Navigate-backward-and-forward-using-keyboard-shortcuts.html#extended">Continue reading "Navigate backward and forward using keyboard shortcuts"</a>
    <img src="http://feeds.feedburner.com/~r/dotnettoad/~4/bZ3ByIHpqOA" height="1" width="1"/>]]></content:encoded>

    <pubDate>Tue, 06 May 2008 03:48:00 -0600</pubDate>
    <guid isPermaLink="false">http://www.dotnettoad.com/index.php?/archives/16-guid.html</guid>
    <category>productivity</category>

<feedburner:origLink>http://www.dotnettoad.com/index.php?/archives/16-Navigate-backward-and-forward-using-keyboard-shortcuts.html</feedburner:origLink></item>
<item>
    <title>how to name enumerations</title>
    <link>http://feedproxy.google.com/~r/dotnettoad/~3/FZLO5mFxXK4/index.php</link>
    
    <comments>http://www.dotnettoad.com/index.php?/archives/15-how-to-name-enumerations.html#comments</comments>
    <wfw:comment>http://www.dotnettoad.com/wfwcomment.php?cid=15</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.dotnettoad.com/rss.php?version=2.0&amp;type=comments&amp;cid=15</wfw:commentRss>
    

    <author>nospam@example.com (Patrick Klug)</author>
    <content:encoded><![CDATA[
    
<p>  </p><p>About a year ago my work colleague and I discussed wether the name of an enumeration should be plural or singular. In the .NET framework both is quite common: </p> 

<pre class="code">System.Drawing.<span style="color: rgb(43, 145, 175);">FontStyle</span></pre>

<p>is singular while </p>

<pre class="code">System.IO.<span style="color: rgb(43, 145, 175);">FileAttributes</span></pre>

<p>is plural. So when should you use one and one the other? 
  </p>
 <br /><a href="http://www.dotnettoad.com/index.php?/archives/15-how-to-name-enumerations.html#extended">Continue reading "how to name enumerations"</a>
    <img src="http://feeds.feedburner.com/~r/dotnettoad/~4/FZLO5mFxXK4" height="1" width="1"/>]]></content:encoded>

    <pubDate>Sun, 04 May 2008 18:36:17 -0600</pubDate>
    <guid isPermaLink="false">http://www.dotnettoad.com/index.php?/archives/15-guid.html</guid>
    
<feedburner:origLink>http://www.dotnettoad.com/index.php?/archives/15-how-to-name-enumerations.html</feedburner:origLink></item>
<item>
    <title>unit testing events</title>
    <link>http://feedproxy.google.com/~r/dotnettoad/~3/ZrY1elLhB6c/index.php</link>
    
    <comments>http://www.dotnettoad.com/index.php?/archives/12-unit-testing-events.html#comments</comments>
    <wfw:comment>http://www.dotnettoad.com/wfwcomment.php?cid=12</wfw:comment>

    <slash:comments>4</slash:comments>
    <wfw:commentRss>http://www.dotnettoad.com/rss.php?version=2.0&amp;type=comments&amp;cid=12</wfw:commentRss>
    

    <author>nospam@example.com (Patrick Klug)</author>
    <content:encoded><![CDATA[
    
<p>In this article I will show you how you can unit test your events. I will show you a simple technique that will enable you to test if your events fire <strong>exactly as often as you want them to </strong>and I will provide you with two implementations. One implementation works well with the .NET Framework 2.0 and the second one uses .NET 3.0 in order to minimize the code necessary.</p> <p>I am assuming you are familiar with NUnit.</p> <br /><a href="http://www.dotnettoad.com/index.php?/archives/12-unit-testing-events.html#extended">Continue reading "unit testing events"</a>
    <img src="http://feeds.feedburner.com/~r/dotnettoad/~4/ZrY1elLhB6c" height="1" width="1"/>]]></content:encoded>

    <pubDate>Fri, 02 May 2008 02:17:00 -0600</pubDate>
    <guid isPermaLink="false">http://www.dotnettoad.com/index.php?/archives/12-guid.html</guid>
    <category>c#</category>
<category>tdd</category>
<category>unit testing</category>

<feedburner:origLink>http://www.dotnettoad.com/index.php?/archives/12-unit-testing-events.html</feedburner:origLink></item>
<item>
    <title>finally? yes, seriously finally</title>
    <link>http://feedproxy.google.com/~r/dotnettoad/~3/Cc8lb9ZA9Zc/index.php</link>
    
    <comments>http://www.dotnettoad.com/index.php?/archives/14-finally-yes,-seriously-finally.html#comments</comments>
    <wfw:comment>http://www.dotnettoad.com/wfwcomment.php?cid=14</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.dotnettoad.com/rss.php?version=2.0&amp;type=comments&amp;cid=14</wfw:commentRss>
    

    <author>nospam@example.com (Patrick Klug)</author>
    <content:encoded><![CDATA[
    
<p>One of the most useful coding patterns is the </p>  <pre class="code">    <span style="color: rgb(0, 0, 255);">try</span> <br />    {<br />    } <br />    <span style="color: rgb(0, 0, 255);">finally</span> {}</pre>

<p>pattern.</p>

<p>Basically the <span style="color: rgb(0, 0, 255);">try </span>- <span style="color: rgb(0, 0, 255);">finally</span> pattern allows you to execute some additional code before the execution is leaving the <span style="color: rgb(0, 0, 255);">try </span>{ } code block.Take this:</p>

<pre class="code">System.Windows.Forms.<span style="color: rgb(43, 145, 175);">Cursor </span>originalCursor = System.Windows.Forms.<span style="color: rgb(43, 145, 175);">Cursor</span>.Current;    
System.Windows.Forms.<span style="color: rgb(43, 145, 175);">Cursor</span>.Current = System.Windows.Forms.<span style="color: rgb(43, 145, 175);">Cursors</span>.WaitCursor;   
<span style="color: blue;">try    
</span>{        
    <span style="color: green;">//some interesting code here    
</span>}    
<span style="color: blue;">finally    
</span>{        
    System.Windows.Forms.<span style="color: rgb(43, 145, 175);">Cursor</span>.Current = originalCursor;    
}</pre>
<a onclick="javascript: pageTracker._trackPageview('/extlink/11011.net/software/vspaste');"  href="http://11011.net/software/vspaste"></a>

<p>The above code sets the cursor to a waiting cursor and sets it back to whatever it was after the code finishes. The good thing is that you don&#8217;t have to worry about the code in the <span style="color: rgb(0, 0, 255);">try </span>block at all. There could be exceptions happening or return statements, the <span style="color: rgb(0, 0, 255);">finally </span>block will be called before the execution continues.</p>
 <br /><a href="http://www.dotnettoad.com/index.php?/archives/14-finally-yes,-seriously-finally.html#extended">Continue reading "finally? yes, seriously finally"</a>
    <img src="http://feeds.feedburner.com/~r/dotnettoad/~4/Cc8lb9ZA9Zc" height="1" width="1"/>]]></content:encoded>

    <pubDate>Thu, 01 May 2008 01:54:00 -0600</pubDate>
    <guid isPermaLink="false">http://www.dotnettoad.com/index.php?/archives/14-guid.html</guid>
    <category>basics</category>
<category>finally</category>
<category>pattern</category>
<category>stackoverflowexception</category>

<feedburner:origLink>http://www.dotnettoad.com/index.php?/archives/14-finally-yes,-seriously-finally.html</feedburner:origLink></item>
<item>
    <title>The Code Project</title>
    <link>http://feedproxy.google.com/~r/dotnettoad/~3/Az_87JHyRDg/index.php</link>
    
    <comments>http://www.dotnettoad.com/index.php?/archives/13-The-Code-Project.html#comments</comments>
    <wfw:comment>http://www.dotnettoad.com/wfwcomment.php?cid=13</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.dotnettoad.com/rss.php?version=2.0&amp;type=comments&amp;cid=13</wfw:commentRss>
    

    <author>nospam@example.com (Patrick Klug)</author>
    <content:encoded><![CDATA[
    
<p>This is the first post of a series that will present useful websites for the .NET <a onclick="javascript: pageTracker._trackPageview('/extlink/www.codeproject.com');"  href="http://www.codeproject.com" target="_blank"><img width="190" height="169" border="0" align="right" style="border-width: 0px;" alt="codeproject" src="http://www.dotnettoad.com/uploads/WindowsLiveWriter/websiteoftheday_D1E5/codeproject_3.jpg" /></a>developer. This time it puts the spotlight on:</p>  <p><a onclick="javascript: pageTracker._trackPageview('/extlink/www.codeproject.com');"  href="http://www.codeproject.com" target="_blank"><img width="128" height="173" border="0" style="border-width: 0px;" alt="codeprojectlogo" src="http://www.dotnettoad.com/uploads/WindowsLiveWriter/websiteoftheday_D1E5/codeprojectlogo_3.png" /></a> </p>  <p>With over 19.000 articles, more than four million users and almost five million visitors per month <a onclick="javascript: pageTracker._trackPageview('/extlink/www.codeproject.com');"  href="http://www.codeproject.com" target="_blank">The Code Project</a> is the number one resource for .NET developers. I have been a member of the code project for more than five years and on countless occasions I have taken advantage of the knowledge available on the site.</p>  <br /><a href="http://www.dotnettoad.com/index.php?/archives/13-The-Code-Project.html#extended">Continue reading "The Code Project"</a>
    <img src="http://feeds.feedburner.com/~r/dotnettoad/~4/Az_87JHyRDg" height="1" width="1"/>]]></content:encoded>

    <pubDate>Wed, 30 Apr 2008 02:34:00 -0600</pubDate>
    <guid isPermaLink="false">http://www.dotnettoad.com/index.php?/archives/13-guid.html</guid>
    <category>websites</category>

<feedburner:origLink>http://www.dotnettoad.com/index.php?/archives/13-The-Code-Project.html</feedburner:origLink></item>
<item>
    <title>combinable Enums (bitfields)</title>
    <link>http://feedproxy.google.com/~r/dotnettoad/~3/lJ-bT0TPNZo/index.php</link>
    
    <comments>http://www.dotnettoad.com/index.php?/archives/11-combinable-Enums-bitfields.html#comments</comments>
    <wfw:comment>http://www.dotnettoad.com/wfwcomment.php?cid=11</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.dotnettoad.com/rss.php?version=2.0&amp;type=comments&amp;cid=11</wfw:commentRss>
    

    <author>nospam@example.com (Patrick Klug)</author>
    <content:encoded><![CDATA[
    
<p>Enums are a quite handy feature. That is, if you don&#8217;t get into the <a onclick="javascript: pageTracker._trackPageview('/extlink/thedailywtf.com/Articles/Tool_Blame.aspx');"  href="http://thedailywtf.com/Articles/Tool_Blame.aspx">Tool Blame</a> trap. In a sane scenario Enums are very useful. Gone are the days where you had to pass cryptic integer values to methods only to get nothing better in return. One really nice feature when using enums, is that you can decide that elements of an enumeration can be combined. </p>  <br /><a href="http://www.dotnettoad.com/index.php?/archives/11-combinable-Enums-bitfields.html#extended">Continue reading "combinable Enums (bitfields)"</a>
    <img src="http://feeds.feedburner.com/~r/dotnettoad/~4/lJ-bT0TPNZo" height="1" width="1"/>]]></content:encoded>

    <pubDate>Tue, 29 Apr 2008 00:57:00 -0600</pubDate>
    <guid isPermaLink="false">http://www.dotnettoad.com/index.php?/archives/11-guid.html</guid>
    <category>basics</category>
<category>enum</category>

<feedburner:origLink>http://www.dotnettoad.com/index.php?/archives/11-combinable-Enums-bitfields.html</feedburner:origLink></item>
<item>
    <title>Array.Contains()</title>
    <link>http://feedproxy.google.com/~r/dotnettoad/~3/qZHCRJeQb2Q/index.php</link>
    
    <comments>http://www.dotnettoad.com/index.php?/archives/10-Array.Contains.html#comments</comments>
    <wfw:comment>http://www.dotnettoad.com/wfwcomment.php?cid=10</wfw:comment>

    <slash:comments>3</slash:comments>
    <wfw:commentRss>http://www.dotnettoad.com/rss.php?version=2.0&amp;type=comments&amp;cid=10</wfw:commentRss>
    

    <author>nospam@example.com (Patrick Klug)</author>
    <content:encoded><![CDATA[
    
Wouldn&#8217;t it be nice if you could test wether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn&#8217;t it be good if you could write code like this?  <pre class="code"><span style="color: blue;">string</span>[] stuff = ....;<br /><span style="color: blue;">if </span>(stuff.Contains(<span style="color: rgb(163, 21, 21);">&#8220;item&#8221;</span>))<br />{<br />    ...<br />}</pre>In .NET 3.5 this is possible out of the box (make sure you reference System.Core and include the System.Linq namespace) but if you try to run this code in .NET 2.0 or .NET 3.0 you will get errors.  Nevertheless the .NET Framework 2.0 does provide a Contains() method on any Array object.  <br />  <br />In the .NET Framework <u>2.0,</u> System.<span style="color: rgb(43, 145, 175);">Array</span> implements the System.Collections.Generic.<span style="color: rgb(43, 145, 175);">IList</span>&lt;T&gt; interface. Unfortunately the implementation of the IList interface is provided at runtime so we do not see the methods in Visual Studio and we cannot write array.Contains(). <br /><a href="http://www.dotnettoad.com/index.php?/archives/10-Array.Contains.html#extended">Continue reading "Array.Contains()"</a>
    <img src="http://feeds.feedburner.com/~r/dotnettoad/~4/qZHCRJeQb2Q" height="1" width="1"/>]]></content:encoded>

    <pubDate>Mon, 28 Apr 2008 02:38:21 -0600</pubDate>
    <guid isPermaLink="false">http://www.dotnettoad.com/index.php?/archives/10-guid.html</guid>
    <category>.net 2.0</category>
<category>array</category>

<feedburner:origLink>http://www.dotnettoad.com/index.php?/archives/10-Array.Contains.html</feedburner:origLink></item>

</channel>
</rss>
