-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsingleton.snippet
More file actions
36 lines (35 loc) · 1.21 KB
/
singleton.snippet
File metadata and controls
36 lines (35 loc) · 1.21 KB
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
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2010/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Title>シングルトンのインスタンス</Title>
<Description>シングルトンのインスタンスとコンストラクタを作成します。</Description>
<SnippetTypes>
<SnippetType>Expansion</SnippetType>
</SnippetTypes>
<Shortcut>singleton</Shortcut>
</Header>
<Snippet>
<Declarations>
<Literal>
<ID>className</ID>
<ToolTip>拡張対象のクラス名</ToolTip>
<Function>ClassName()</Function>
<Default>ClassName</Default>
</Literal>
</Declarations>
<Code Language="csharp" Kind="method decl">
<![CDATA[ /// <summary>
/// シングルトンのインスタンスです。
/// </summary>
public static readonly $className$ Instance = new $className$();
/// <summary>
/// インスタンスを初期化します。
/// </summary>
private $className$()
{
}]]>
</Code>
</Snippet>
</CodeSnippet>
</CodeSnippets>