April 12, 2009, 11:19
<?xml version="1.0" encoding="utf-8" ?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Title>Empty pattern snippet</Title>
<Shortcut>empty</Shortcut>
<Description>Creates an empty static property and nested null object </Description>
<Author>Alex Boyne-Aitken</Author>
<SnippetTypes>
<SnippetType>Expansion</SnippetType>
</SnippetTypes>
</Header>
<Snippet>
<Declarations>
<Literal>
<ID>type</ID>
<ToolTip>Class type</ToolTip>
<Default>Class</Default>
</Literal>
</Declarations>
<Code Language="csharp"><![CDATA[
private static readonly $type$ empty = new NullObject();
public static $type$ Empty { get { return empty; } }
private class NullObject : $type$
{
}
$end$]]>
</Code>
</Snippet>
</CodeSnippet>
</CodeSnippets>
Download