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

Predicate implementsEquals

Whether the type t defines an equals method.

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
predicate implementsEquals(ValueOrRefType t)