﻿<?xml version="1.0" encoding="utf-8" ?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
	<CodeSnippet Format="1.0.0">
		<Header>
			<Title>Dispose Component</Title>
			<Shortcut>disposec</Shortcut>
			<Description>Creates the canonical Dispose method override code for types that ultimately derive from the System.ComponentModel.Component class.</Description>
			<Author>Dave Sexton</Author>
			<SnippetTypes>
				<SnippetType>Expansion</SnippetType>
			</SnippetTypes>
		</Header>
		<Snippet>
			<Declarations>
				<Literal Editable="false">
					<ID>class</ID>
					<Function>ClassName()</Function>
				</Literal>
			</Declarations>
			<Code Language="csharp">
				<![CDATA[		/// <summary>
		/// Releases the unmanaged resources used by an instance of the <see cref="$class$" /> class and optionally releases the managed resources.
		/// </summary>
		/// <param name="disposing"><strong>true</strong> to release both managed and unmanaged resources; <strong>false</strong> to release only unmanaged resources.</param>
		protected override void Dispose(bool disposing)
		{
			try
			{
				if (disposing)
				{
					$end$
				}
			}
			finally
			{
				base.Dispose(disposing);
			}
		}]]>
			</Code>
		</Snippet>
	</CodeSnippet>
</CodeSnippets>