MetalamaAPI documentationPost­Sharp API migrationPost­Sharp.​AspectsEvent­Level­AspectCompile­Time­Validate
Open sandboxFocus

EventLevelAspect.CompileTimeValidate Method

CompileTimeValidate(EventInfo)

In Metalama, validation is done in BuildEligibility(IEligibilityBuilder<T>) and BuildAspect(IAspectBuilder<T>). The equivalent of returning false is to call SkipAspect().

Declaration
public virtual bool CompileTimeValidate(EventInfo targetEvent)
Parameters
Type Name Description
System.Reflection.EventInfo targetEvent
Returns
Type Description
System.Boolean

CompileTimeValidate(Object)

In Metalama, validation is done in BuildEligibility(IEligibilityBuilder<T>) and BuildAspect(IAspectBuilder<T>). The equivalent of returning false is to call SkipAspect().

Declaration
public sealed override bool CompileTimeValidate(object target)
Parameters
Type Name Description
System.Object target
Returns
Type Description
System.Boolean
Overrides
Aspect.CompileTimeValidate(Object)
Implements
IValidableAnnotation.CompileTimeValidate(Object)