﻿<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>Moke Blog</title>
    <description>My blog is where I write about technology and general life topics that may or may not be of interest to others.</description>
    <link>http://www.mokesit.com/Blogs/tabid/89/BlogId/1/Default.aspx</link>
    <language>en-US</language>
    <managingEditor>rmokros@mokesit.com</managingEditor>
    <webMaster>rmokros@mokesit.com</webMaster>
    <pubDate>Wed, 07 Jan 2009 06:22:38 GMT</pubDate>
    <lastBuildDate>Wed, 07 Jan 2009 06:22:38 GMT</lastBuildDate>
    <docs>http://backend.userland.com/rss</docs>
    <generator>Blog RSS Generator Version 3.2.0.29758</generator>
    <item>
      <title>Pluralsight On-Demand - LINQ Fundamentals</title>
      <description>&lt;P&gt;&lt;FONT face=Verdana&gt;I just finished the &lt;A href="http://www.pluralsight.com/main/olt/Course.aspx?n=linq-fundamentals"&gt;Pluralsight On-Demand - LINQ Fundamentals&lt;/A&gt; series today by &lt;A href="http://www.pluralsight.com/main/instructor.aspx?name=scott-allen"&gt;Scott Allen&lt;/A&gt;.  Some of my take aways are &lt;/FONT&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;FONT face=Verdana&gt;it is important to understand difference between IEnumerable and IQueryable&lt;/FONT&gt; 
&lt;LI&gt;&lt;FONT face=Verdana&gt;LINQ provides a much better API for working with XML, yippy...&lt;/FONT&gt; 
&lt;LI&gt;&lt;FONT face=Verdana&gt;LINQ to SQL looks cool, but I probably will not use it since Entity Framework seems to be the Microsoft supported option going forward.&lt;/FONT&gt; 
&lt;LI&gt;&lt;FONT face=Verdana&gt;ADO Data Services makes it very easy to create a Restful webservices layer over your data.  Although I am not convinced this is a still a simple solution when you start to operationalize the services with some authentication and authorization.&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;&lt;FONT face=Verdana&gt;I am excited about applying LINQ to some projects I have been working on and how LINQ can provide more elegant code.&lt;/FONT&gt;&lt;/P&gt;</description>
      <link>http://www.mokesit.com/Blogs/tabid/89/EntryID/24/Default.aspx</link>
      <author>rmokros@mokesit.com</author>
      <comments>http://www.mokesit.com/Blogs/tabid/89/EntryID/24/Default.aspx#Comments</comments>
      <guid isPermaLink="true">http://www.mokesit.com/Default.aspx?tabid=89&amp;EntryID=24</guid>
      <pubDate>Wed, 10 Dec 2008 05:52:14 GMT</pubDate>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://www.mokesit.com/DesktopModules/Blog/Trackback.aspx?id=24</trackback:ping>
    </item>
    <item>
      <title>PluralSight On-Demand</title>
      <description>&lt;P&gt;&lt;FONT face=Verdana&gt;With recession in full swing, what are you doing to maintain your edge?  Being a Pluralsight subscriber for sometime, I decided to try the &lt;A href="http://www.pluralsight.com/main/olt/default.aspx"&gt;Pluralsight On-Demand&lt;/A&gt; product to keep my skills sharp.  I especially like the play back speed where I can accelerate the delivery of content essentially doing a session in 1/2 the time.&lt;/FONT&gt;&lt;/P&gt;</description>
      <link>http://www.mokesit.com/Blogs/tabid/89/EntryID/23/Default.aspx</link>
      <author>rmokros@mokesit.com</author>
      <comments>http://www.mokesit.com/Blogs/tabid/89/EntryID/23/Default.aspx#Comments</comments>
      <guid isPermaLink="true">http://www.mokesit.com/Default.aspx?tabid=89&amp;EntryID=23</guid>
      <pubDate>Mon, 08 Dec 2008 04:29:59 GMT</pubDate>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://www.mokesit.com/DesktopModules/Blog/Trackback.aspx?id=23</trackback:ping>
    </item>
    <item>
      <title>Visual Studio CollapseAll Macro</title>
      <description>&lt;P&gt;I found this macro on &lt;A href="http://www.codeproject.com/KB/macros/collapseall.aspx"&gt;CodeProject&lt;/A&gt;, and I use this macro extensively for collapsing complex solution structures.  The version I use is a modified version found in the comments rather than the article itself.  This macro collapses all elements in a solution.  You might find it as handy as I did.&lt;/P&gt;
&lt;P&gt;To use the macro, in VS goto View-&gt; Macro Explorer.  Create a new module by copying the contents of the macro below, then add a toolbar button that executes the macro.&lt;BR&gt;&lt;/P&gt;
&lt;P&gt;
&lt;TABLE style="WIDTH: 100%" cellSpacing=1 cellPadding=1 border=1&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;Imports System&lt;BR&gt;Imports EnvDTE&lt;BR&gt;Imports System.Diagnostics
&lt;P&gt;Public Module CollapseAll&lt;/P&gt;
&lt;P&gt;    Sub CollapseAll()&lt;/P&gt;
&lt;P&gt;        ' Get the the Solution Explorer tree&lt;BR&gt;        Dim solutionExplorer As UIHierarchy&lt;BR&gt;        solutionExplorer = DTE.Windows.Item(Constants.vsext_wk_SProjectWindow).Object()&lt;/P&gt;
&lt;P&gt;        ' Check if there is any open solution&lt;BR&gt;        If (solutionExplorer.UIHierarchyItems.Count = 0) Then&lt;BR&gt;            Return&lt;BR&gt;        End If&lt;/P&gt;
&lt;P&gt;        ' Get the top node (the name of the solution)&lt;BR&gt;        Dim rootNode As UIHierarchyItem = solutionExplorer.UIHierarchyItems.Item(1)&lt;BR&gt;        rootNode.DTE.SuppressUI = True&lt;/P&gt;
&lt;P&gt;        ' Collapse each project node&lt;BR&gt;        Collapse(rootNode, solutionExplorer)&lt;/P&gt;
&lt;P&gt;        ' Select the solution node, or else when you click &lt;BR&gt;        ' on the solution window&lt;BR&gt;        ' scrollbar, it will synchronize the open document &lt;BR&gt;        ' with the tree and pop&lt;BR&gt;        ' out the corresponding node which is probably not what you want.&lt;/P&gt;
&lt;P&gt;        rootNode.Select(vsUISelectionType.vsUISelectionTypeSelect)&lt;BR&gt;        rootNode.DTE.SuppressUI = False&lt;/P&gt;
&lt;P&gt;    End Sub&lt;/P&gt;
&lt;P&gt;    Private Sub Collapse(ByVal item As UIHierarchyItem, ByRef solutionExplorer As UIHierarchy)&lt;/P&gt;
&lt;P&gt;        For Each innerItem As UIHierarchyItem In item.UIHierarchyItems&lt;BR&gt;            If innerItem.UIHierarchyItems.Count &gt; 0 Then&lt;/P&gt;
&lt;P&gt;                ' Re-cursive call&lt;BR&gt;                Collapse(innerItem, solutionExplorer)&lt;/P&gt;
&lt;P&gt;                ' Collapse&lt;BR&gt;                If innerItem.UIHierarchyItems.Expanded Then&lt;BR&gt;                    innerItem.UIHierarchyItems.Expanded = False&lt;BR&gt;                    If innerItem.UIHierarchyItems.Expanded = True Then&lt;BR&gt;                        ' Bug in VS 2005&lt;BR&gt;                        innerItem.Select(vsUISelectionType.vsUISelectionTypeSelect)&lt;BR&gt;                        solutionExplorer.DoDefaultAction()&lt;BR&gt;                    End If&lt;BR&gt;                End If&lt;/P&gt;
&lt;P&gt;            End If&lt;BR&gt;        Next&lt;/P&gt;
&lt;P&gt;    End Sub&lt;/P&gt;
&lt;P&gt;&lt;BR&gt;End Module&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/P&gt;</description>
      <link>http://www.mokesit.com/Blogs/tabid/89/EntryID/21/Default.aspx</link>
      <author>rmokros@mokesit.com</author>
      <comments>http://www.mokesit.com/Blogs/tabid/89/EntryID/21/Default.aspx#Comments</comments>
      <guid isPermaLink="true">http://www.mokesit.com/Default.aspx?tabid=89&amp;EntryID=21</guid>
      <pubDate>Wed, 26 Nov 2008 17:14:11 GMT</pubDate>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://www.mokesit.com/DesktopModules/Blog/Trackback.aspx?id=21</trackback:ping>
    </item>
    <item>
      <title>Visual Studio CollapseAll Macro</title>
      <description>&lt;P&gt;I found this macro a while back on CodeProject.  I use this macro extensively for collapsing complex solution and project structures in Visual Studio.  This macro collapses all elements in a solution.  You might find it as handy as I did.&lt;/P&gt;
&lt;P&gt;To use the macro, in VS goto View-&gt; Macro Explorer.  Create a new module and paste the contents of CollapseAllMacro as the module.  Then, add a toolbar button that executes the macro.&lt;/P&gt;
&lt;P&gt;
&lt;TABLE style="WIDTH: 100%" cellSpacing=1 cellPadding=1 border=1&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;P&gt;Imports System&lt;BR&gt;Imports EnvDTE&lt;BR&gt;Imports System.Diagnostics&lt;/P&gt;
&lt;P&gt;Public Module CollapseAll&lt;/P&gt;
&lt;P&gt;    Sub CollapseAll()&lt;/P&gt;
&lt;P&gt;        ' Get the the Solution Explorer tree&lt;BR&gt;        Dim solutionExplorer As UIHierarchy&lt;BR&gt;        solutionExplorer = DTE.Windows.Item(Constants.vsext_wk_SProjectWindow).Object()&lt;/P&gt;
&lt;P&gt;        ' Check if there is any open solution&lt;BR&gt;        If (solutionExplorer.UIHierarchyItems.Count = 0) Then&lt;BR&gt;            Return&lt;BR&gt;        End If&lt;/P&gt;
&lt;P&gt;        ' Get the top node (the name of the solution)&lt;BR&gt;        Dim rootNode As UIHierarchyItem = solutionExplorer.UIHierarchyItems.Item(1)&lt;BR&gt;        rootNode.DTE.SuppressUI = True&lt;/P&gt;
&lt;P&gt;        ' Collapse each project node&lt;BR&gt;        Collapse(rootNode, solutionExplorer)&lt;/P&gt;
&lt;P&gt;        ' Select the solution node, or else when you click &lt;BR&gt;        ' on the solution window&lt;BR&gt;        ' scrollbar, it will synchronize the open document &lt;BR&gt;        ' with the tree and pop&lt;BR&gt;        ' out the corresponding node which is probably not what you want.&lt;/P&gt;
&lt;P&gt;        rootNode.Select(vsUISelectionType.vsUISelectionTypeSelect)&lt;BR&gt;        rootNode.DTE.SuppressUI = False&lt;/P&gt;
&lt;P&gt;    End Sub&lt;/P&gt;
&lt;P&gt;    Private Sub Collapse(ByVal item As UIHierarchyItem, ByRef solutionExplorer As UIHierarchy)&lt;/P&gt;
&lt;P&gt;        For Each innerItem As UIHierarchyItem In item.UIHierarchyItems&lt;BR&gt;            If innerItem.UIHierarchyItems.Count &gt; 0 Then&lt;/P&gt;
&lt;P&gt;                ' Re-cursive call&lt;BR&gt;                Collapse(innerItem, solutionExplorer)&lt;/P&gt;
&lt;P&gt;                ' Collapse&lt;BR&gt;                If innerItem.UIHierarchyItems.Expanded Then&lt;BR&gt;                    innerItem.UIHierarchyItems.Expanded = False&lt;BR&gt;                    If innerItem.UIHierarchyItems.Expanded = True Then&lt;BR&gt;                        ' Bug in VS 2005&lt;BR&gt;                        innerItem.Select(vsUISelectionType.vsUISelectionTypeSelect)&lt;BR&gt;                        solutionExplorer.DoDefaultAction()&lt;BR&gt;                    End If&lt;BR&gt;                End If&lt;/P&gt;
&lt;P&gt;            End If&lt;BR&gt;        Next&lt;/P&gt;
&lt;P&gt;    End Sub&lt;BR&gt;End Module&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/P&gt;</description>
      <link>http://www.mokesit.com/Blogs/tabid/89/EntryID/22/Default.aspx</link>
      <author>rmokros@mokesit.com</author>
      <comments>http://www.mokesit.com/Blogs/tabid/89/EntryID/22/Default.aspx#Comments</comments>
      <guid isPermaLink="true">http://www.mokesit.com/Default.aspx?tabid=89&amp;EntryID=22</guid>
      <pubDate>Wed, 26 Nov 2008 16:27:45 GMT</pubDate>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://www.mokesit.com/DesktopModules/Blog/Trackback.aspx?id=22</trackback:ping>
    </item>
    <item>
      <title>Internet Explorer "Operation Aborted" when testing with WatiN</title>
      <description>This article talks about how to fix the "Operation Aborted" error that occurs sporadically when testing ASP.NET applications with WatiN.</description>
      <link>http://www.mokesit.com/Blogs/tabid/89/EntryID/20/Default.aspx</link>
      <author>rmokros@mokesit.com</author>
      <comments>http://www.mokesit.com/Blogs/tabid/89/EntryID/20/Default.aspx#Comments</comments>
      <guid isPermaLink="true">http://www.mokesit.com/Default.aspx?tabid=89&amp;EntryID=20</guid>
      <pubDate>Wed, 16 Jul 2008 18:52:38 GMT</pubDate>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://www.mokesit.com/DesktopModules/Blog/Trackback.aspx?id=20</trackback:ping>
    </item>
    <item>
      <title>Unit testing ASP.NET applications with WatiN links</title>
      <description>This article references some important links found while attempting to leverage WatiN for unit testing an ASP.NET application.</description>
      <link>http://www.mokesit.com/Blogs/tabid/89/EntryID/19/Default.aspx</link>
      <author>rmokros@mokesit.com</author>
      <comments>http://www.mokesit.com/Blogs/tabid/89/EntryID/19/Default.aspx#Comments</comments>
      <guid isPermaLink="true">http://www.mokesit.com/Default.aspx?tabid=89&amp;EntryID=19</guid>
      <pubDate>Tue, 15 Jul 2008 17:25:41 GMT</pubDate>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://www.mokesit.com/DesktopModules/Blog/Trackback.aspx?id=19</trackback:ping>
    </item>
    <item>
      <title>TortoiseSVN ignore list</title>
      <description>&lt;P&gt;&lt;FONT face=Verdana size=2&gt;Here is my Tortoise SVN configuration and ignore list.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size=2&gt;*.cache bin obj *.suo *.obj *.pdb *.exe *.dll *.csproj.user&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;Here is a snapshot of my current configuration.  Notice, I also selected to use _svn instead of .svn.  This just works better with Microsoft tools.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;&lt;IMG height=468 alt=TortoiseSvnConfiguration.png src="http://www.mokesit.com/Portals/0/blogs/mokeblog/TortoiseSvnConfiguration.png" width=659 border=0&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <link>http://www.mokesit.com/Blogs/tabid/89/EntryID/18/Default.aspx</link>
      <author>rmokros@mokesit.com</author>
      <comments>http://www.mokesit.com/Blogs/tabid/89/EntryID/18/Default.aspx#Comments</comments>
      <guid isPermaLink="true">http://www.mokesit.com/Default.aspx?tabid=89&amp;EntryID=18</guid>
      <pubDate>Wed, 21 May 2008 13:55:52 GMT</pubDate>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://www.mokesit.com/DesktopModules/Blog/Trackback.aspx?id=18</trackback:ping>
    </item>
    <item>
      <title>Faster builds when using TortoiseSVN</title>
      <description>&lt;P&gt;&lt;FONT size=2&gt;&lt;FONT face=Verdana&gt;On my current project, we are using subversion and, naturally, &lt;/FONT&gt;&lt;A href="http://tortoisesvn.tigris.org/"&gt;&lt;FONT face=Verdana&gt;TortoiseSVN&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=Verdana&gt;.  One thing that bugged me was that it slows down the build process in Visual Studio to an unacceptable level.  I have excluded the root of my c drive like so &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face=Verdana size=2&gt;&lt;FONT face="Courier New"&gt;c:\*&lt;/FONT&gt; but performance is still unacceptable.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Verdana size=2&gt;So, I found myself killing the TSVCache.exe process before each build.  So, my quick fix was to add this command as a pre-build event in my project.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size=2&gt;taskkill /T /f /fi "imagename eq TSVNCache.exe"&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;&lt;FONT face=Verdana&gt;This command kills the TSVNCache process and any associated child processes.  Don't worry about Tortoise not working, the next time you checkout or commit some changes, TSVNCache will restart.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;&lt;FONT face=Verdana&gt;In my scenario, killing the TSVNCache process prior to building made my builds significantly faster.&lt;/FONT&gt;&lt;BR&gt;&lt;/P&gt;&lt;/FONT&gt;</description>
      <link>http://www.mokesit.com/Blogs/tabid/89/EntryID/17/Default.aspx</link>
      <author>rmokros@mokesit.com</author>
      <comments>http://www.mokesit.com/Blogs/tabid/89/EntryID/17/Default.aspx#Comments</comments>
      <guid isPermaLink="true">http://www.mokesit.com/Default.aspx?tabid=89&amp;EntryID=17</guid>
      <pubDate>Fri, 16 May 2008 00:21:13 GMT</pubDate>
      <slash:comments>1</slash:comments>
      <trackback:ping>http://www.mokesit.com/DesktopModules/Blog/Trackback.aspx?id=17</trackback:ping>
    </item>
    <item>
      <title>Using SED to convert ASP.NET 1.1 pages to 3.5</title>
      <description>Using SED to drive your ASP.NET 1.1 to 3.5 upgrade</description>
      <link>http://www.mokesit.com/Blogs/tabid/89/EntryID/16/Default.aspx</link>
      <author>rmokros@mokesit.com</author>
      <comments>http://www.mokesit.com/Blogs/tabid/89/EntryID/16/Default.aspx#Comments</comments>
      <guid isPermaLink="true">http://www.mokesit.com/Default.aspx?tabid=89&amp;EntryID=16</guid>
      <pubDate>Mon, 12 May 2008 12:52:00 GMT</pubDate>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://www.mokesit.com/DesktopModules/Blog/Trackback.aspx?id=16</trackback:ping>
    </item>
    <item>
      <title>VS2005 - Customizing Code Snippets</title>
      <description>&lt;P&gt;&lt;FONT face=Verdana size=2&gt;In Visual Studio 2005 when you right-click on a method and select "Generate Method Stub" the following code is generated.  &lt;/FONT&gt;&lt;/P&gt;&lt;FONT face=Verdana size=2&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT size=2&gt;
&lt;P&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=1&gt;&lt;FONT color=#0000ff&gt;
&lt;TABLE style="WIDTH: 100%" cellSpacing=1 cellPadding=1 border=1&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt;&lt;FONT size=2&gt;&lt;FONT color=#0000ff&gt;public&lt;/FONT&gt; &lt;FONT color=#0000ff&gt;bool&lt;/FONT&gt; IsDogLoose()&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size=2&gt;{&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;&lt;FONT face="Courier New"&gt;&lt;FONT color=#0000ff&gt;   throw&lt;/FONT&gt; &lt;FONT color=#0000ff&gt;new&lt;/FONT&gt; &lt;FONT color=#2b91af&gt;Exception&lt;/FONT&gt;(&lt;FONT color=#a31515&gt;"The method or operation is not implemented."&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;);&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size=2&gt;}&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#000000&gt;Wouldn't the generated code look 'nicer" if it just threw a "NotImplemented" exception like this...&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;
&lt;TABLE style="WIDTH: 100%" cellSpacing=1 cellPadding=1 border=1&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;FONT size=2&gt;
&lt;P&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;&lt;FONT color=#0000ff size=2&gt;public&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;bool&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT face="Courier New"&gt; IsDogLoose()&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt;{&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;/FONT&gt;&lt;FONT face="Courier New"&gt;&lt;FONT color=#0000ff size=2&gt;   throw&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;new&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;NotImplementedException&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT face="Courier New"&gt;(); &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt;}&lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#000000&gt;Although this might seem petty, it is pretty cool to note that you can customize any of the standard code snippets by opening the appropriate code snippet in your favorite xml editor.  You can find the code snippets here &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#000000&gt;c:\Program Files\Microsoft Visual Studio 8\VC#\Snippets\1033\Refactoring\&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#000000&gt;The code snippet for GenerateMethodStub is called MethodStub.snippet and looks like this.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;
&lt;TABLE style="WIDTH: 100%" cellSpacing=1 cellPadding=1 border=1&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;FONT size=1&gt;&lt;?xml version="1.0" encoding="utf-8"?&gt;&lt;?xml version="1.0" encoding="utf-8"?&gt;&lt;BR&gt;&lt;CodeSnippets  xmlns="&lt;A href="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"&gt;http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet&lt;/A&gt;"&gt;&lt;BR&gt;    &lt;CodeSnippet Format="1.0.0"&gt;&lt;BR&gt;        &lt;Header&gt;&lt;BR&gt;            &lt;Title&gt;Method Stub - Body&lt;/Title&gt;&lt;BR&gt;            &lt;Description&gt;Snippet for generating method stub with a body&lt;/Description&gt;&lt;BR&gt;            &lt;Author&gt;Microsoft Corporation&lt;/Author&gt;&lt;BR&gt;            &lt;SnippetTypes&gt;&lt;BR&gt;                &lt;SnippetType&gt;Refactoring&lt;/SnippetType&gt;&lt;BR&gt;            &lt;/SnippetTypes&gt;&lt;BR&gt;        &lt;/Header&gt;&lt;BR&gt;        &lt;Snippet&gt;&lt;BR&gt;            &lt;Declarations&gt;&lt;BR&gt;                &lt;Literal Editable="true"&gt;&lt;BR&gt;                    &lt;ID&gt;signature&lt;/ID&gt;&lt;BR&gt;                    &lt;Default&gt;signature&lt;/Default&gt;&lt;BR&gt;                &lt;/Literal&gt;&lt;BR&gt;                &lt;Literal&gt;&lt;BR&gt;                    &lt;ID&gt;Exception&lt;/ID&gt;&lt;BR&gt;                    &lt;Function&gt;SimpleTypeName(global::System.Exception)&lt;/Function&gt;&lt;BR&gt;                &lt;/Literal&gt;&lt;BR&gt;            &lt;/Declarations&gt;&lt;BR&gt;            &lt;Code Language="csharp"&gt;&lt;BR&gt;                &lt;![CDATA[$signature$&lt;BR&gt;{&lt;BR&gt;  $end$throw new $&lt;FONT color=#ff0000&gt;Exception&lt;/FONT&gt;$("The method or operation is not implemented.");&lt;BR&gt;}]]&gt;&lt;BR&gt;            &lt;/Code&gt;&lt;BR&gt;        &lt;/Snippet&gt;&lt;BR&gt;    &lt;/CodeSnippet&gt;&lt;BR&gt;&lt;/CodeSnippets&gt;&lt;FONT size=1&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#000000&gt;Ah, I think I can figure this out now.  Change &lt;FONT color=#ff0000&gt;$Exception$&lt;/FONT&gt; to &lt;FONT color=#ff0000&gt;$NotImplementedException$&lt;/FONT&gt;.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#000000&gt;There you go...  Customize the snippets to your liking...&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <link>http://www.mokesit.com/Blogs/tabid/89/EntryID/15/Default.aspx</link>
      <author>rmokros@mokesit.com</author>
      <comments>http://www.mokesit.com/Blogs/tabid/89/EntryID/15/Default.aspx#Comments</comments>
      <guid isPermaLink="true">http://www.mokesit.com/Default.aspx?tabid=89&amp;EntryID=15</guid>
      <pubDate>Wed, 23 May 2007 17:48:00 GMT</pubDate>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://www.mokesit.com/DesktopModules/Blog/Trackback.aspx?id=15</trackback:ping>
    </item>
  </channel>
</rss>