PostSharp 2023.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Model Namespace / Notify­Property­Changed­Attribute Class / Notify­Property­Changed­Attribute Methods / Notify­Property­Changed­Attribute.​Compile­Time­Validate Method / Notify­Property­Changed­Attribute.​Compile­Time­Validate Method (Type)

NotifyPropertyChangedAttribute.CompileTimeValidate Method (Type)

Method invoked at build time to ensure that the aspect has been applied to the right target.

Namespace:  PostSharp.Patterns.Model
Assembly:  PostSharp.Patterns.Model (in PostSharp.Patterns.Model.dll) Version: 2023.0.3.0 (2023.0.3.0)
public override bool CompileTimeValidate(
	Type type


Type: System.Type
Type to which the aspect has been applied

Return Value

Type: Boolean
true if the aspect was applied to an acceptable field, otherwise false.
The implementation of this method is expected to emit an error message (see MessageSource) or an exception in case of error. Returning false without emitting an error message or exception causes the aspect to be silently ignored.
See Also