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