Last active
December 29, 2015 00:01
-
-
Save Luis-Palacios/2e8c2b434df863b5cfed to your computer and use it in GitHub Desktop.
PropertyStub snippet for C# that uses fullprop snippet to implement interface properties
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"?> | |
<!-- Credits go to: http://codeimpossible.com/2010/11/29/Make-Implement-Interface-use-auto-properties/ --> | |
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> | |
<CodeSnippet Format="1.0.0"> | |
<Header> | |
<Title>Property Stub</Title> | |
<Description>Snippet for generating property stub</Description> | |
<Author>Microsoft Corporation</Author> | |
<SnippetTypes> | |
<SnippetType>Refactoring</SnippetType> | |
</SnippetTypes> | |
</Header> | |
<Snippet> | |
<Declarations> | |
<Literal Editable="true"> | |
<ID>signature</ID> | |
<Default>signature</Default> | |
</Literal> | |
<Literal Editable="true"> | |
<ID>GetterAccessibility</ID> | |
<Default></Default> | |
</Literal> | |
<Literal Editable="true"> | |
<ID>SetterAccessibility</ID> | |
<Default></Default> | |
</Literal> | |
<Literal> | |
<ID>Exception</ID> | |
<Function>SimpleTypeName(global::System.NotImplementedException)</Function> | |
</Literal> | |
</Declarations> | |
<Code Language="csharp"> | |
<![CDATA[$signature${ $GetterAccessibility$ get; $SetterAccessibility$ set; }]]> | |
</Code> | |
</Snippet> | |
</CodeSnippet> | |
</CodeSnippets> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment