MetalamaAPI documentationAspect APIMetalama.​Framework.​AspectsContract­AspectGet­Actual­Direction
Open sandboxFocus

ContractAspect.GetActualDirection Method

GetActualDirection(IAspectBuilder, ContractDirection)

Gets the actual direction of the contract given the direction returned by GetDefinedDirection(IAspectBuilder), after resolving the Default value according to the characteristics of the target declaration, and after taking predecessors and secondary instances into account. The implementation of this method may return None to skip the aspect.

Declaration
protected virtual ContractDirection GetActualDirection(IAspectBuilder builder, ContractDirection direction)
Parameters
Type Name Description
IAspectBuilder builder
ContractDirection direction
Returns
Type Description
ContractDirection