Open sandboxFocus

Method IsContractAdviceEligible

IsContractAdviceEligible(IDeclaration, ContractDirection)

Determines whether the given declaration is an eligible target for an AddContract advice for a given ContractDirection.

Declaration
public static bool IsContractAdviceEligible(this IDeclaration declaration, ContractDirection contractDirection = ContractDirection.Default)
Parameters
Type Name Description
IDeclaration declaration

The declaration for which eligibility is determined.

ContractDirection contractDirection

The contract direction.

Returns
Type Description
bool

true if declaration is eligible for an AddContract advice for the given contractDirection.