Skip to content

Instantly share code, notes, and snippets.

@keaising
Created September 7, 2018 02:05
Show Gist options
  • Save keaising/1965ba475bf9d23f78b261872602e9cb to your computer and use it in GitHub Desktop.
Save keaising/1965ba475bf9d23f78b261872602e9cb to your computer and use it in GitHub Desktop.
C# propc template
<?xml version="1.0" encoding="utf-8" ?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Title>propc</Title>
<Shortcut>propc</Shortcut>
<Description>Code snippet for an automatically implemented property
Language Version: C# 3.0 or higher with comments</Description>
<Author>Shuxiao Wang</Author>
<SnippetTypes>
<SnippetType>Expansion</SnippetType>
</SnippetTypes>
</Header>
<Snippet>
<Declarations>
<Literal>
<ID>type</ID>
<ToolTip>Property type</ToolTip>
<Default>int</Default>
</Literal>
<Literal>
<ID>property</ID>
<ToolTip>Property name</ToolTip>
<Default>MyProperty</Default>
</Literal>
<Literal>
<ID>comment</ID>
<ToolTip>Comment name</ToolTip>
<Default></Default>
</Literal>
</Declarations>
<Code Language="csharp"><![CDATA[///<summary>
/// $comment$
/// </summary>
public $type$ $property$ { get; set; }$end$]]>
</Code>
</Snippet>
</CodeSnippet>
</CodeSnippets>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment