Skip to content

Instantly share code, notes, and snippets.

@peyangu
Created March 15, 2017 08:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peyangu/75bc7224d41e6a3036c610bf05ba7f1b to your computer and use it in GitHub Desktop.
Save peyangu/75bc7224d41e6a3036c610bf05ba7f1b to your computer and use it in GitHub Desktop.
nameof演算子
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