summaryrefslogtreecommitdiff
path: root/tools/MbUnit/VSSnippets/MbUnitCSharpSnippets/submodel.snippet
blob: 3d336dafd641ff96f4a259fb9d3bf0e6ab9f5c7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?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="csharp"><![CDATA[		public $model$ $name$Model
        {
            get
            {
                return ($model$)this.SubModels["$name$"].Model;
            }
        }
	]]></Code>
    </Snippet>
  </CodeSnippet>
</CodeSnippets>