PostSharp 2023.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Model Namespace / Notify­Property­Changed­Attribute Class / Notify­Property­Changed­Attribute Properties / Notify­Property­Changed­Attribute.​Prevent­False­Positives Property

NotifyPropertyChangedAttribute.PreventFalsePositives Property

Determines whether the aspect should do additional efforts to prevent the PropertyChanged event from being raised when the value itself did not change. The default value of this property is false, which means that the aspect will raise the PropertyChanged event whenever any dependency of the property has changed, whether the property value has eventually changed or not. Setting this property to true consumes more memory and processing power because the aspect will need to evaluate the properties and store their value.

Namespace:  PostSharp.Patterns.Model
Assembly:  PostSharp.Patterns.Model (in PostSharp.Patterns.Model.dll) Version: 2023.0.3.0 (2023.0.3.0)
public bool PreventFalsePositives { get; set; }

Property Value

Type: Boolean
See Also