Open sandboxFocus

Method IsAdviceEligible

IsAdviceEligible(IDeclaration, AdviceKind)

Determines whether the given declaration is an eligible target for a specified kind of advice.

Declaration
public static bool IsAdviceEligible(this IDeclaration declaration, AdviceKind adviceKind)
Parameters
Type Name Description
IDeclaration declaration

The declaration for which eligibility is determined.

AdviceKind adviceKind

Tha advice kind, but not AddContract.

Returns
Type Description
bool

true if declaration is eligible for the given adviceKind.

See Also