PostSharpAPI ReferencePost­Sharp.​Patterns.​ModelSafe­For­Dependency­Analysis­Attribute
Open sandboxFocus

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
System.Object
SafeForDependencyAnalysisAttribute
Namespace: PostSharp.Patterns.Model
Assembly: PostSharp.Patterns.Model.dll
Syntax
public sealed class SafeForDependencyAnalysisAttribute : Attribute
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.

Constructors

Name Description
SafeForDependencyAnalysisAttribute()