FieldLevelAspect.CompileTimeValidate Method
CompileTimeValidate(FieldInfo)
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(FieldInfo field)
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.FieldInfo | field |
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 |