Created
October 5, 2015 13:33
-
-
Save marcduiker/64a512a057644533eefc to your computer and use it in GitHub Desktop.
Visual Studio code snippet to create an extension method.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> | |
<CodeSnippet Format="1.0.0"> | |
<Header> | |
<SnippetTypes> | |
<SnippetType>Expansion</SnippetType> | |
</SnippetTypes> | |
<Title>Extension Method</Title> | |
<Author>Marc Duiker</Author> | |
<Description>Snippet to create an extension method. | |
</Description> | |
<HelpUrl> | |
</HelpUrl> | |
<Shortcut>exm</Shortcut> | |
</Header> | |
<Snippet> | |
<Declarations> | |
<Literal Editable="true"> | |
<ID>TypeOut</ID> | |
<ToolTip>TypeOut</ToolTip> | |
<Default>TypeOut</Default> | |
<Function> | |
</Function> | |
</Literal> | |
<Literal Editable="true"> | |
<ID>MethodName</ID> | |
<ToolTip>MethodName</ToolTip> | |
<Default>MethodName</Default> | |
<Function> | |
</Function> | |
</Literal> | |
<Literal Editable="true"> | |
<ID>TypeIn</ID> | |
<ToolTip>TypeIn</ToolTip> | |
<Default>TypeIn</Default> | |
<Function> | |
</Function> | |
</Literal> | |
<Literal Editable="true"> | |
<ID>parameter</ID> | |
<ToolTip>parameter</ToolTip> | |
<Default>parameter</Default> | |
<Function> | |
</Function> | |
</Literal> | |
</Declarations> | |
<Code Language="csharp"><![CDATA[public static $TypeOut$ $MethodName$(this $TypeIn$ $parameter$) | |
{ | |
$end$ | |
}]]></Code> | |
</Snippet> | |
</CodeSnippet> | |
</CodeSnippets> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment