Last active
May 16, 2022 10:32
-
-
Save andreas-nesheim/1804939656953e5ab56bcf69b5762c50 to your computer and use it in GitHub Desktop.
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" ?> | |
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> | |
<CodeSnippet Format="1.0.0"> | |
<Header> | |
<Title>CommunityToolkit.Mvvm command (async)</Title> | |
<Shortcut>cmda</Shortcut> | |
<Description>Code snippet for async ICommand using the CommunityToolkit.Mvvm</Description> | |
<Author>Andreas Nesheim</Author> | |
<SnippetTypes> | |
<SnippetType>Expansion</SnippetType> | |
</SnippetTypes> | |
</Header> | |
<Snippet> | |
<Declarations> | |
<Literal> | |
<ID>name</ID> | |
<ToolTip>Method name</ToolTip> | |
<Default>MyMethod</Default> | |
</Literal> | |
</Declarations> | |
<Code Language="csharp"><![CDATA[ | |
[ICommand] | |
private async Task $name$Async() | |
{ | |
} | |
$end$]]> | |
</Code> | |
</Snippet> | |
</CodeSnippet> | |
</CodeSnippets> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment