SafeForDependencyAnalysisAttribute Class
Custom attribute that, when applied on a property, prevents the dependency analysis algorithm used by the NotifyPropertyChangedAttribute aspect from emitting errors when it encounters constructs that it cannot analyze.
Inheritance Hierarchy
System.Object
  System.Attribute
    PostSharp.Patterns.Model.SafeForDependencyAnalysisAttribute

Namespace: PostSharp.Patterns.Model
Assembly: PostSharp.Patterns.Model (in PostSharp.Patterns.Model.dll) Version: 4.3.31.0 (4.3.31.0)
Syntax
C#
public sealed class SafeForDependencyAnalysisAttribute : Attribute

The SafeForDependencyAnalysisAttribute type exposes the following members.

Constructors
  NameDescription
Public methodSafeForDependencyAnalysisAttribute
Initializes a new instance of the SafeForDependencyAnalysisAttribute class
Top
Extension Methods
  NameDescription
Public Extension MethodQueryInterface<T>
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.)
Top
Remarks

Getters of properties annotated with SafeForDependencyAnalysisAttribute should typically specify dependencies manually using the Depends class. Note that all dependencies that can be found using code analysis will be taken into account. The SafeForDependencyAnalysisAttribute only disables errors, but not the code analysis itself.

See Also