PostSharp.ILAPI ReferencePost­Sharp.​Patterns.​ThreadingThread­Aware­AttributeCompile­Time­Validate
Open sandboxFocus

ThreadAwareAttribute.CompileTimeValidate Method

CompileTimeValidate(Type)

Method invoked at build time to ensure that the aspect has been applied to the right target.

Declaration
public override bool CompileTimeValidate(Type type)
Parameters
Type Name Description
Type type

Type to which the aspect has been applied

Returns
Type Description
System.Boolean

true if the aspect was applied to an acceptable field, otherwise false.

Overrides
TypeLevelAspect.CompileTimeValidate(Type)