diff options
Diffstat (limited to 'tools/MbUnit/VSSnippets/MbUnitVBSnippets/submodel.snippet')
| -rw-r--r-- | tools/MbUnit/VSSnippets/MbUnitVBSnippets/submodel.snippet | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/tools/MbUnit/VSSnippets/MbUnitVBSnippets/submodel.snippet b/tools/MbUnit/VSSnippets/MbUnitVBSnippets/submodel.snippet new file mode 100644 index 0000000..8f4f645 --- /dev/null +++ b/tools/MbUnit/VSSnippets/MbUnitVBSnippets/submodel.snippet @@ -0,0 +1,32 @@ +<?xml version="1.0"?>
+<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
+ <CodeSnippet Format="1.0.0">
+ <Header>
+ <Title>ISubModel wrapper</Title>
+ <Author>MbUnit</Author>
+ <Description>Expansion snippet for a ISubModel wrapper</Description>
+ <Shortcut>submodel</Shortcut>
+ <SnippetTypes>
+ <SnippetType>Expansion</SnippetType>
+ </SnippetTypes>
+ </Header>
+ <Snippet>
+ <Declarations>
+ <Literal>
+ <ID>model</ID>
+ <ToolTip>Model type</ToolTip>
+ </Literal>
+ <Literal>
+ <ID>name</ID>
+ <ToolTip>SubModel Name</ToolTip>
+ </Literal>
+ </Declarations>
+ <Code Language="VB"><![CDATA[ Public ReadOnly Property $name$Model As $model$
+ Get
+ Return DirectCast(Me.SubModels("$name$").Model, $model$)
+ End Get
+ End Property
+ ]]></Code>
+ </Snippet>
+ </CodeSnippet>
+</CodeSnippets>
\ No newline at end of file |
