CodeQL library for C#
codeql/csharp-all 3.1.1 (changelog, source)
Search

Predicate afferentCoupling

the afferent coupling of a type is the number of types that directly depend on it.

Import path

import semmle.code.csharp.metrics.Coupling
predicate afferentCoupling(ValueOrRefType t, int ca)