【发布时间】:2013-10-22 10:49:30
【问题描述】:
有没有办法使用 PostSharp 来更改这种代码:
private _property;
public Object Property
{
get { return _property; }
set
{
if (_property != value)
{
_property = value;
PropertyChanged("Property");
}
}
}
变成类似:
[NotifyChanged]
public Object Property { get; set; }
?
【问题讨论】:
-
不知道 PostSharp,但 Fody 做得很好。
标签: c# wpf inotifypropertychanged postsharp aspects