- Tools > Code Snippets Manager
- Import
- Choose .Snippet file
Last active
November 14, 2019 20:08
-
-
Save yonixw/8d00bf3d5c0fbc040d35cb6d81196891 to your computer and use it in GitHub Desktop.
Xamarin TAG snippet with class name
This file contains 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"?> | |
<CodeSnippet Format="1.0.0" | |
xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> | |
<Header> | |
<Title>Xamarin Tag per class</Title> | |
<Author>Yonixw</Author> | |
<Shortcut>xtag</Shortcut> | |
<Description>Make tag with class name, Thanks to BlackWasp.co.uk</Description> | |
<SnippetTypes> | |
<SnippetType>Expansion</SnippetType> | |
</SnippetTypes> | |
</Header> | |
<Snippet> | |
<Declarations> | |
<Literal Editable="false"> | |
<ID>classname</ID> | |
<ToolTip>Class name</ToolTip> | |
<Function>ClassName()</Function> | |
</Literal> | |
</Declarations> | |
<Code Language="CSharp"> | |
<![CDATA[static readonly string TAG = typeof($classname$).Name.ToString();]]></Code> | |
</Snippet> | |
</CodeSnippet> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment