Created
March 15, 2017 08:01
-
-
Save peyangu/75bc7224d41e6a3036c610bf05ba7f1b to your computer and use it in GitHub Desktop.
nameof演算子
This file contains 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
private string name_; | |
/// <summary> | |
/// 名前 | |
/// </summary> | |
public string Name | |
{ | |
get { return name_; } | |
set | |
{ | |
if (name_!= value) | |
{ | |
name_= value; | |
NotifyPropertyChanged(nameof(Name)); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment