mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
30 lines
935 B
Plaintext
30 lines
935 B
Plaintext
|
<?xml version="1.0" encoding="utf-8" ?>
|
||
|
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
|
||
|
<CodeSnippet Format="1.0.0">
|
||
|
<Header>
|
||
|
<Title>ReactiveUI - ObservableAsPropertyHelper</Title>
|
||
|
<Shortcut>guiproprx</Shortcut>
|
||
|
<Description>Code snippet for a ReactiveUI ObservableAsPropertyHelper</Description>
|
||
|
<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>
|
||
|
</Declarations>
|
||
|
<Code Language="csharp"><![CDATA[private readonly ObservableAsPropertyHelper<$type$> _$property$;
|
||
|
public $type$ $property$ => _$property$.Value;$end$]]>
|
||
|
</Code>
|
||
|
</Snippet>
|
||
|
</CodeSnippet>
|
||
|
</CodeSnippets>
|