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

Predicate hasAccessingMethod

whether t has a method m that accesses some local field,

Import path

import semmle.code.csharp.metrics.Coupling
predicate hasAccessingMethod(ValueOrRefType t, Method m)