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