|TypeLevelAspect.CompileTimeValidate Method (Type)|
Method invoked at build time to ensure that the aspect has been applied to the right target.
PostSharp (in PostSharp.dll) Version: 18.104.22.168 (22.214.171.124)
public virtual bool CompileTimeValidate(
- Type: System.Type
Type to which the aspect has been applied
if the aspect was applied to an acceptable field, otherwise
The implementation of this method is expected to emit an error message (see
) or an exception in case of error. Returning false
without emitting an
error message or exception causes the aspect to be silently ignored.