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

Predicate accessesLocalFieldOrProperty

whether m accesses field or property f defined in the same type

Import path

import semmle.code.csharp.metrics.Coupling
predicate accessesLocalFieldOrProperty(Method m, Declaration f)