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 |
|---|---|---|
| FieldInfo | field |
Returns
| Type | Description |
|---|---|
| bool |
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 override sealed bool CompileTimeValidate(object target)Parameters
| Type | Name | Description |
|---|---|---|
| object | target |
Returns
| Type | Description |
|---|---|
| bool |