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

Predicate getInvokedEqualsMethod

Gets the equals method that will be invoked on a value x of type t when x.Equals(object) is called.

Either the equals method is (an override of) object.Equals(object), or an implementation of IEquatable<T>.Equals(T) which is called from the object.Equals(object) method inherited by t.

Import path

import semmle.code.csharp.frameworks.System
Method getInvokedEqualsMethod(ValueOrRefType t)