سؤال

When applying PostSharp's [INotifyPropertyChanged] attribute to a class, is there a way to force PostSharp to ignore some of the properties?

هل كانت مفيدة؟

المحلول

There is a documentation article about Customizing the NotifyPropertyChanged Aspect. Based on that article, you need to mark the property with [IgnoreAutoChangeNotification] attribute to prevent the notification from being raised for that property.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top