-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaddevent.snippet
More file actions
29 lines (29 loc) · 947 Bytes
/
addevent.snippet
File metadata and controls
29 lines (29 loc) · 947 Bytes
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
<?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>addevent</Shortcut>
</Header>
<Snippet>
<Declarations>
<Literal>
<ID>eventName</ID>
<ToolTip>イベントハンドラーの名前</ToolTip>
<Default>Event</Default>
</Literal>
</Declarations>
<Code Language="csharp" Kind="method body">
<![CDATA[
$eventName$ += (sender, e) =>
{
};
]]>
</Code>
</Snippet>
</CodeSnippet>
</CodeSnippets>