PostSharpAPI ReferencePost­Sharp.​Patterns.​ContractsLocation­Contract­AttributeCompile­Time­Validate
Open sandboxFocus

LocationContractAttribute.CompileTimeValidate Method

CompileTimeValidate(LocationInfo)

Validates that the current aspect has been applied to a valid location.

Declaration
protected virtual bool CompileTimeValidate(LocationInfo target)
Parameters
Type Name Description
LocationInfo target

The location to which the current aspect has been applied.

Returns
Type Description
Boolean

true if target is a valid target for the current aspect, otherwise false.