Created
May 27, 2012 12:50
-
-
Save pinzolo/2814099 to your computer and use it in GitHub Desktop.
INotifyPropertyChanged 実装クラスのためのプロパティスニペット
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> | |
<CodeSnippet Format="1.0.0"> | |
<Header> | |
<Title>propc</Title> | |
<Shortcut>propc</Shortcut> | |
<Description>INotifyPropertyChanged 用のプロパティとバッキング フィールド用のコード スニペット</Description> | |
<Author>pinzolo</Author> | |
<SnippetTypes> | |
<SnippetType>Expansion</SnippetType> | |
</SnippetTypes> | |
</Header> | |
<Snippet> | |
<Declarations> | |
<Literal> | |
<ID>type</ID> | |
<ToolTip>プロパティ型</ToolTip> | |
<Default>int</Default> | |
</Literal> | |
<Literal> | |
<ID>property</ID> | |
<ToolTip>プロパティ名</ToolTip> | |
<Default>MyProperty</Default> | |
</Literal> | |
<Literal> | |
<ID>field</ID> | |
<ToolTip>このプロパティのバッキング変数</ToolTip> | |
<Default>myVar</Default> | |
</Literal> | |
<Literal> | |
<ID>description</ID> | |
<ToolTip>このプロパティの概要</ToolTip> | |
<Default>Description</Default> | |
</Literal> | |
</Declarations> | |
<Code Language="csharp"><![CDATA[#region $property$ | |
/// <summary> | |
/// $description$ | |
/// </summary> | |
private $type$ $field$; | |
/// <summary> | |
/// $description$の取得、設定 | |
/// </summary> | |
public $type$ $property$ | |
{ | |
get { return this.$field$;} | |
set | |
{ | |
this.$field$ = value; | |
this.OnPropertyChanged("$property$"); | |
} | |
} | |
#endregion$end$]]> | |
</Code> | |
</Snippet> | |
</CodeSnippet> | |
</CodeSnippets> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment