Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aaronmorgan/9fecfce2acb871571f22a0195f0bfa87 to your computer and use it in GitHub Desktop.
Save aaronmorgan/9fecfce2acb871571f22a0195f0bfa87 to your computer and use it in GitHub Desktop.
Add the autoproperty get/set
<?xml version="1.0" encoding="utf-8" ?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Title>{ get; set; }</Title>
<Shortcut>gs</Shortcut>
<Description>Inserts a { get; set; } expression</Description>
<Author>Aaron Morgan</Author>
<SnippetTypes>
<SnippetType>Expansion</SnippetType>
</SnippetTypes>
</Header>
<Snippet>
<Declarations>
<Literal Editable="false">
<ID>SystemConsole</ID>
<Function>SimpleTypeName(global::System.Console)</Function>
</Literal>
</Declarations>
<Code Language="csharp"><![CDATA[{ get; set; }]]>
</Code>
</Snippet>
</CodeSnippet>
</CodeSnippets>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment