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

Predicate methodUsesFieldOrProperty

Holds if the declaring type of method m is t and m accesses declaration d, which is either a field or a property.

Import path

import semmle.code.csharp.metrics.Coupling
predicate methodUsesFieldOrProperty(ValueOrRefType t, Method m, Declaration d)