CodeQL library for C#
codeql/csharp-all 0.9.2-dev (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)