Free cookie consent management tool by TermsFeed Policy Generator

source: misc/tools/HL3Snippets/HL3.ParameterProperty.snippet @ 17800

Last change on this file since 17800 was 7271, checked in by abeham, 13 years ago

#1722: updated parameter snippets to use interface type in property

File size: 1.9 KB
Line 
1<?xml version="1.0" encoding="utf-8"?>
2<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
3  <CodeSnippet Format="1.0.0">
4    <Header>
5      <Title>HL3.ParameterProperty</Title>
6      <Author>Andreas Beham</Author>
7      <Description>Creates a parameter property</Description>
8      <HelpUrl>https://dev.heuristiclab.com/trac/hl/core/wiki/DevelopersCodeSnippets</HelpUrl>
9      <SnippetTypes>
10        <SnippetType>Expansion</SnippetType>
11      </SnippetTypes>
12      <Keywords />
13      <Shortcut>hl3ParameterProperty</Shortcut>
14    </Header>
15    <Snippet>
16      <References />
17      <Imports />
18      <Declarations>
19        <Literal Editable="true">
20          <ID>ParamType</ID>
21          <Type></Type>
22          <ToolTip>Type of the parameter (Value, Lookup, ValueLookup, ScopeTreeLookup, ...)</ToolTip>
23          <Default>Lookup</Default>
24          <Function></Function>
25        </Literal>
26        <Literal Editable="true">
27          <ID>ParamName</ID>
28          <Type></Type>
29          <ToolTip>Name of the parameter</ToolTip>
30          <Default>Name</Default>
31          <Function></Function>
32        </Literal>
33        <Literal Editable="true">
34          <ID>ParamDataType</ID>
35          <Type></Type>
36          <ToolTip></ToolTip>
37          <Default>IntValue</Default>
38          <Function></Function>
39        </Literal>
40        <Literal Editable="true">
41          <ID>ParamVisibility</ID>
42          <Type></Type>
43          <ToolTip>public, private or protected</ToolTip>
44          <Default>public</Default>
45          <Function></Function>
46        </Literal>
47      </Declarations>
48      <Code Language="csharp" Kind="" Delimiter="$"><![CDATA[$ParamVisibility$ I$ParamType$Parameter<$ParamDataType$> $ParamName$Parameter {
49  get { return (I$ParamType$Parameter<$ParamDataType$>)Parameters["$ParamName$"]; }
50}]]></Code>
51    </Snippet>
52  </CodeSnippet>
53</CodeSnippets>
Note: See TracBrowser for help on using the repository browser.