Listing 2

<Declarations>
        <Object>
          <ID>Variable</ID>
          <Type>Object</Type>
          <ToolTip>
Replace with an expression.</ToolTip>
          <Default>VariableName</Default>
        </Object>
        <Literal>
          <ID>Case1</ID>
          <Type></Type>
          <ToolTip>
Replace with a valid value of the expression.
			</ToolTip>
          <Default>1</Default>
        </Literal>
        <Literal>
          <ID>Case2</ID>
          <Type></Type>
          <ToolTip>
Replace with another valid value of the expression.
			</ToolTip>
          <Default>2</Default>
        </Literal>
      </Declarations>
      <Code Language="VB" Kind="method body">
  		<![CDATA[Select Case $Variable$
    			Case $Case1$

    			Case $Case2$

    			Case Else

		End Select]]>
</Code>

Listing 3 IsNumeric.Snippet

<?xml version="1.0" encoding="UTF-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
  <CodeSnippet Format="1.0.0">
    <Header>
      <Title>IsNumeric</Title>
      <Author>Tommy Newcomb</Author>
      <Description>Inserts an IsNumeric function.</Description>
      <Shortcut>IsNumeric</Shortcut>
      <SnippetTypes>
        <SnippetType>Expansion</SnippetType>
      </SnippetTypes>
    </Header>
    <Snippet>
      <Declarations>
        <Literal>
          <ID>classname</ID>
          <ToolTip>Insert an IsNumeric function into your code.</ToolTip>
          <Default>ClassName</Default>
        </Literal>
        <Literal>
          <ID>developer</ID>
          <ToolTip>Replace with the developer's name.</ToolTip>
          <Default>None</Default>
        </Literal>
      </Declarations>
      <Code Language="CSharp" Kind="method body">
        <![CDATA[/// <summary>
        /// File: $classname$.cs
        /// Developer: $developer$
        ///
        /// Description: IsNumeric takes an object and returns a true if it's "numeric"
        /// False if it's not.
        ///
        /// </summary>
        /// <param name="value"></param>
        /// <returns>boolean</returns>
        internal static bool IsNumeric(object anyObject)
		{
			// IsNumeric tests to see if a passed-in object is numeric or not.
			double dOutValue;

			return Double.TryParse(Convert.ToString(anyObject), System.Globalization.NumberStyles.Any,
			 System.Globalization.NumberFormatInfo.InvariantInfo, out dOutValue);
		}]]>
      </Code>
    </Snippet>
  </CodeSnippet>
</CodeSnippets>