标签: c# postsharp
将PostSharp的[INotifyPropertyChanged]属性应用于某个类时,是否有办法强制PostSharp忽略某些属性?
[INotifyPropertyChanged]
答案 0 :(得分:5)
有一篇关于Customizing the NotifyPropertyChanged Aspect的文档文章。 根据该文章,您需要使用[IgnoreAutoChangeNotification]属性标记该属性,以防止为该属性引发通知。
[IgnoreAutoChangeNotification]