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

Predicate shareFieldOrProperty

whether m1 and m2 access a common field or property

Import path

import semmle.code.csharp.metrics.Coupling
predicate shareFieldOrProperty(ValueOrRefType t, Method m1, Method m2)