﻿<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="rss.xsl"?>
<rss version="2.0">
  <channel>
    <title>GotCodeSnippets.NET Snippets and News</title>
    <description>Get the latest submitted code snippets and news from the GotCodeSnippets.NET team.</description>
    <link>http://www.gotcodesnippets.net/</link>
    <image>
      <title>GotCodeSnippets.NET</title>
      <url>http://www.gotcodesnippets.net//images/gcslogo4.png</url>
      <link>http://www.gotcodesnippets.net/</link>
      <description>GotCodeSnippets.NET</description>
    </image>
    <copyright>All rights reserved.  Content distributed under Creative Commons.</copyright>
    <managingEditor>GotCodeSnippets.NET</managingEditor>
    <lastBuildDate>Tue, 22 Dec 2009 18:45:17 GMT</lastBuildDate>
    <docs>http://backend.userland.com/rss</docs>
    <generator>RSS.NET: http://www.rssdotnet.com/</generator>
    <item>
      <title>Snippet: re</title>
      <description>This is a try &amp; catch block but will be complied only when Release.</description>
      <link>http://www.gotcodesnippets.net/1143.snippet</link>
      <author>GotCodeSnippets.NET</author>
      <pubDate>Tue, 22 Dec 2009 18:45:17 GMT</pubDate>
    </item>
    <item>
      <title>Snippet: Void Stub</title>
      <link>http://www.gotcodesnippets.net/1142.snippet</link>
      <author>GotCodeSnippets.NET</author>
      <pubDate>Tue, 27 Oct 2009 12:57:03 GMT</pubDate>
    </item>
    <item>
      <title>Snippet: Implicit Cast</title>
      <link>http://www.gotcodesnippets.net/1141.snippet</link>
      <author>GotCodeSnippets.NET</author>
      <pubDate>Tue, 27 Oct 2009 12:56:28 GMT</pubDate>
    </item>
    <item>
      <title>Snippet: Explicit Cast</title>
      <link>http://www.gotcodesnippets.net/1140.snippet</link>
      <author>GotCodeSnippets.NET</author>
      <pubDate>Tue, 27 Oct 2009 12:55:27 GMT</pubDate>
    </item>
    <item>
      <title>Snippet: ifElse</title>
      <description>Creates an if...else stub </description>
      <link>http://www.gotcodesnippets.net/1139.snippet</link>
      <author>GotCodeSnippets.NET</author>
      <pubDate>Tue, 27 Oct 2009 12:47:15 GMT</pubDate>
    </item>
    <item>
      <title>Snippet: ifElse</title>
      <description>Creates an if...else stub</description>
      <link>http://www.gotcodesnippets.net/1138.snippet</link>
      <author>GotCodeSnippets.NET</author>
      <pubDate>Mon, 26 Oct 2009 08:24:08 GMT</pubDate>
    </item>
    <item>
      <title>Snippet: Copy a File </title>
      <description>Teste</description>
      <link>http://www.gotcodesnippets.net/1137.snippet</link>
      <author>GotCodeSnippets.NET</author>
      <pubDate>Thu, 07 May 2009 06:29:59 GMT</pubDate>
    </item>
    <item>
      <title>Snippet: Dispose pattern</title>
      <description>A common design pattern for implementing IDisposable. This snippet expands into three methods:
1. A destructor for your class.
2. A public Dispose() method.
3. A private Dispose() method called by 1 &amp; 2.</description>
      <link>http://www.gotcodesnippets.net/1136.snippet</link>
      <author>GotCodeSnippets.NET</author>
      <pubDate>Wed, 30 Jul 2008 12:18:53 GMT</pubDate>
    </item>
    <item>
      <title>Snippet: SqlDataReader</title>
      <description>Creates a using block for a given SqlCommand and opens a while loop on SqlDataReader.Read() for that Command.</description>
      <link>http://www.gotcodesnippets.net/1135.snippet</link>
      <author>GotCodeSnippets.NET</author>
      <pubDate>Tue, 10 Jun 2008 07:12:07 GMT</pubDate>
    </item>
    <item>
      <title>Snippet: throw new NotImplementedException</title>
      <description>thrni -&gt; throw new NotImplementedException("");</description>
      <link>http://www.gotcodesnippets.net/1134.snippet</link>
      <author>GotCodeSnippets.NET</author>
      <pubDate>Sun, 18 May 2008 10:47:42 GMT</pubDate>
    </item>
    <item>
      <title>Snippet: throw new ApplicationException</title>
      <description>thra -&gt; throw new ApplicationException("");</description>
      <link>http://www.gotcodesnippets.net/1133.snippet</link>
      <author>GotCodeSnippets.NET</author>
      <pubDate>Sun, 18 May 2008 10:46:58 GMT</pubDate>
    </item>
    <item>
      <title>Snippet: throw new</title>
      <description>thr -&gt; throw new</description>
      <link>http://www.gotcodesnippets.net/1132.snippet</link>
      <author>GotCodeSnippets.NET</author>
      <pubDate>Sun, 18 May 2008 10:36:51 GMT</pubDate>
    </item>
    <item>
      <title>Snippet: Silverlight clientaccespolicy.xml</title>
      <description>Template for creating a clientaccesspolicy.xml for use in Silverlight cross domain enabling web services.</description>
      <link>http://www.gotcodesnippets.net/1131.snippet</link>
      <author>GotCodeSnippets.NET</author>
      <pubDate>Sun, 06 Apr 2008 22:40:40 GMT</pubDate>
    </item>
    <item>
      <title>Snippet: 
				Constrain a variable to a range.
			</title>
      <description>Rather that using the potentially slow Math.Max(Math.Min()) rather use a ternary if operator.</description>
      <link>http://www.gotcodesnippets.net/1130.snippet</link>
      <author>GotCodeSnippets.NET</author>
      <pubDate>Fri, 14 Mar 2008 03:25:46 GMT</pubDate>
    </item>
    <item>
      <title>Snippet: Save Window Size Settings</title>
      <description>Saves a windows size to settings if the window is a normal state.</description>
      <link>http://www.gotcodesnippets.net/1129.snippet</link>
      <author>GotCodeSnippets.NET</author>
      <pubDate>Fri, 05 Oct 2007 04:41:24 GMT</pubDate>
    </item>
    <item>
      <title>Snippet: Save Window Location Settings</title>
      <description>Saves a windows location to settings if the window is a normal state.</description>
      <link>http://www.gotcodesnippets.net/1128.snippet</link>
      <author>GotCodeSnippets.NET</author>
      <pubDate>Fri, 05 Oct 2007 04:40:59 GMT</pubDate>
    </item>
    <item>
      <title>Snippet: Load Window Size Settings</title>
      <description>Loads a windows previous size from settings, checking for first use and using design default if not specified.</description>
      <link>http://www.gotcodesnippets.net/1127.snippet</link>
      <author>GotCodeSnippets.NET</author>
      <pubDate>Fri, 05 Oct 2007 04:40:35 GMT</pubDate>
    </item>
    <item>
      <title>Snippet: Load Window Location Settings</title>
      <description>Loads a windows previous location from settings, checking for first use and using design default if not specified.</description>
      <link>http://www.gotcodesnippets.net/1126.snippet</link>
      <author>GotCodeSnippets.NET</author>
      <pubDate>Fri, 05 Oct 2007 04:40:09 GMT</pubDate>
    </item>
    <item>
      <title>Snippet: Auto Upgrade Settings</title>
      <description>Auto Upgrade the settings from a previous version if it exists.</description>
      <link>http://www.gotcodesnippets.net/1125.snippet</link>
      <author>GotCodeSnippets.NET</author>
      <pubDate>Fri, 05 Oct 2007 04:39:43 GMT</pubDate>
    </item>
    <item>
      <title>Snippet: Insert Wait Cursor Block Default</title>
      <description>Inserts a block of code setting the cursor to wait, then default.</description>
      <link>http://www.gotcodesnippets.net/1124.snippet</link>
      <author>GotCodeSnippets.NET</author>
      <pubDate>Fri, 05 Oct 2007 04:38:53 GMT</pubDate>
    </item>
    <item>
      <title>Snippet: Insert Wait Cursor Block remembering the previous cursor</title>
      <description>Inserts a block of code setting the cursor to wait, then revert to the previous cursor.</description>
      <link>http://www.gotcodesnippets.net/1123.snippet</link>
      <author>GotCodeSnippets.NET</author>
      <pubDate>Fri, 05 Oct 2007 04:38:26 GMT</pubDate>
    </item>
    <item>
      <title>Snippet: Ternary Operator</title>
      <description>Insert a template Ternary operator in the format (Condition ? true : false);
Shortcut is Ternary</description>
      <link>http://www.gotcodesnippets.net/1122.snippet</link>
      <author>GotCodeSnippets.NET</author>
      <pubDate>Fri, 05 Oct 2007 04:30:37 GMT</pubDate>
    </item>
    <item>
      <title>Snippet: BugsTrace.call</title>
      <description>This snippet inserts the BugsTrace.call statement.  Locate it wherever you want to trace program flow or critical variable values, in place of comments.  See BugsTrace.doc.snippet for instructions. </description>
      <link>http://www.gotcodesnippets.net/1121.snippet</link>
      <author>GotCodeSnippets.NET</author>
      <pubDate>Tue, 25 Sep 2007 08:33:18 GMT</pubDate>
    </item>
    <item>
      <title>Snippet: BugsTrace.function</title>
      <description>This is part of a 3 snippet set:
bugstrace.doc.snippet, bugstrace.call.snippet, and bugstrace.function.snippet</description>
      <link>http://www.gotcodesnippets.net/1120.snippet</link>
      <author>GotCodeSnippets.NET</author>
      <pubDate>Tue, 25 Sep 2007 08:25:39 GMT</pubDate>
    </item>
    <item>
      <title>Snippet: BugsTrace.function</title>
      <description>This is part of a 3 snippet set:
bugstrace.doc.snippet, bugstrace.call.snippet, and bugstrace.function.snippet</description>
      <link>http://www.gotcodesnippets.net/1119.snippet</link>
      <author>GotCodeSnippets.NET</author>
      <pubDate>Tue, 25 Sep 2007 08:25:28 GMT</pubDate>
    </item>
    <item>
      <title>Snippet: BugsTrace.doc</title>
      <description>BugsTrace provides a very lightweight, easily deployed developer message trace capability
that is not dependent on the application, language, framework, or runtime tools for use.
Instant BugsTraces can contribute greatly to rapid development, testing, and debugging. 
The BugsTrace output only has trace statements and information the developer wanted to include, making it much more easily readable for rapid testing and debugging.  I wrote the BASIC version in the 1980's and have reused it in many different languages and environments including VB, C, C#, PHP, Ruby and COBOL. All work the same using a simple text file as the trace toggle and trace content.  System security controls read and write access.  The code can be customized but that is not required.  It can stay in the application throughout it's life cycle and deployment contexts with very negligible performance impact.  For VB 2005, there are 3 snippet files: bugstrace.call, bugstrace.method, and bugstrace.doc.  Enjoy!</description>
      <link>http://www.gotcodesnippets.net/1118.snippet</link>
      <author>GotCodeSnippets.NET</author>
      <pubDate>Tue, 25 Sep 2007 08:18:55 GMT</pubDate>
    </item>
    <item>
      <title>Snippet: Declare Event</title>
      <description>Define an event with generic eventhandler. Only provide public add and remove methods</description>
      <link>http://www.gotcodesnippets.net/1117.snippet</link>
      <author>GotCodeSnippets.NET</author>
      <pubDate>Tue, 11 Sep 2007 03:12:34 GMT</pubDate>
    </item>
    <item>
      <title>Snippet: 
        Property_declaration
      </title>
      <description>Property declare template</description>
      <link>http://www.gotcodesnippets.net/1116.snippet</link>
      <author>GotCodeSnippets.NET</author>
      <pubDate>Mon, 03 Sep 2007 20:37:44 GMT</pubDate>
    </item>
    <item>
      <title>Snippet: 
        Custom_event_args_class
      </title>
      <description>Custom Event Args template</description>
      <link>http://www.gotcodesnippets.net/1115.snippet</link>
      <author>GotCodeSnippets.NET</author>
      <pubDate>Mon, 03 Sep 2007 20:36:59 GMT</pubDate>
    </item>
    <item>
      <title>Snippet: QueryString Property</title>
      <description>A QueryString (as in GET parameter) Property with replaceables for type, property name, and GET parameter. More info: http://www2.john.rummellcc.com/2007/05/querystring-property-c-code-snippet.html</description>
      <link>http://www.gotcodesnippets.net/1114.snippet</link>
      <author>GotCodeSnippets.NET</author>
      <pubDate>Tue, 22 May 2007 10:31:18 GMT</pubDate>
    </item>
    <item>
      <title>Snippet: Resize an Image</title>
      <description>ReSize an Image</description>
      <link>http://www.gotcodesnippets.net/1113.snippet</link>
      <author>GotCodeSnippets.NET</author>
      <pubDate>Tue, 20 Mar 2007 10:54:54 GMT</pubDate>
    </item>
    <item>
      <title>Snippet: operator ==</title>
      <description>operator == snippet</description>
      <link>http://www.gotcodesnippets.net/1112.snippet</link>
      <author>GotCodeSnippets.NET</author>
      <pubDate>Wed, 07 Feb 2007 08:33:13 GMT</pubDate>
    </item>
    <item>
      <title>Snippet: Assertion2</title>
      <description>Assertion with exception that allows you to include a variable's value in the error message</description>
      <link>http://www.gotcodesnippets.net/1111.snippet</link>
      <author>GotCodeSnippets.NET</author>
      <pubDate>Thu, 11 Jan 2007 08:53:51 GMT</pubDate>
    </item>
    <item>
      <title>Snippet: Assertion1</title>
      <description>Assertion/Exception combination inspired by Debugging .Net 2.0 Applications</description>
      <link>http://www.gotcodesnippets.net/1110.snippet</link>
      <author>GotCodeSnippets.NET</author>
      <pubDate>Thu, 11 Jan 2007 08:52:32 GMT</pubDate>
    </item>
    <item>
      <title>Snippet: ternay</title>
      <description>Insert ternary (single line compact conditional) operator</description>
      <link>http://www.gotcodesnippets.net/1109.snippet</link>
      <author>GotCodeSnippets.NET</author>
      <pubDate>Tue, 05 Dec 2006 08:26:58 GMT</pubDate>
    </item>
  </channel>
</rss>