MetalamaAPI documentationPatterns APIMetalama.​Patterns.​ContractsInvariant­AttributeBuild­Aspect
Open sandboxFocus

InvariantAttribute.BuildAspect Method

BuildAspect(IAspectBuilder<IMethod>)

Initializes the aspect. The implementation must add advice, child aspects and validators using the builder parameter.

Declaration
public override void BuildAspect(IAspectBuilder<IMethod> builder)
Parameters
Type Name Description
IAspectBuilder<IMethod> builder

An object that allows the aspect to add advice, child aspects and validators.

Overrides
MethodAspect.BuildAspect(IAspectBuilder<IMethod>)