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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Title>Property With Region</Title>
<Author></Author>
<Description>VB.NET version of Mike's code snippet for property with region</Description>
<HelpUrl />
<SnippetTypes>
<SnippetType>Expansion</SnippetType>
</SnippetTypes>
<Keywords />
<Shortcut>prop</Shortcut>
</Header>
<Snippet>
<References />
<Imports />
<Declarations>
<Literal Editable="true">
<ID>region</ID>
<Type />
<ToolTip>Region Name</ToolTip>
<Default>RegionName</Default>
<Function></Function>
</Literal>
<Literal Editable="true">
<ID>type</ID>
<Type />
<ToolTip>Property type</ToolTip>
<Default>Integer</Default>
<Function></Function>
</Literal>
<Literal Editable="true">
<ID>property</ID>
<Type />
<ToolTip>Property name</ToolTip>
<Default>MyProperty</Default>
<Function></Function>
</Literal>
<Literal Editable="true">
<ID>field</ID>
<Type />
<ToolTip>The variable backing this property</ToolTip>
<Default>myVar</Default>
<Function></Function>
</Literal>
</Declarations>
<Code Language="vb" Kind="method body" Delimiter="$"><![CDATA[
#Region "$region$"
private $field$ as $type$
Public Property $property$ As $type$
Get
Return $field$
End Get
Set(ByVal value As $type$)
$field$ = value
End Set
End Property
#End Region]]></Code>
</Snippet>
</CodeSnippet>
</CodeSnippets>
|