您的位置:首页 > 运维架构

Net3.5及以上版本INotifyPropertyChanged接口的友好用法

2012-03-26 11:14 375 查看
1、核心类BaseNotifyPropertyChanged ,主要用来封装NotifyProperty的执行方法

View Code 1 public class User : BaseNotifyPropertyChanged
2 {
3 private string name;
4 public string Name
5 {
6 get { return name; }
7 set
8 {
9 name = value;
RaisePropertyChanged(() => this.Name);
}
}
}

So is easy
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: