Query module HashedButNoHash

name
Hashed value without GetHashCode definition
description
Finds uses of hashing on types that define ‘Equals(…)’ but not ‘GetHashCode()’.
kind
problem
problem.severity
warning
precision
high
id
cs/gethashcode-is-not-defined
tags
reliability maintainability

Imports

System

Provides definitions related to the namespace System.

csharp

The default C# QL library.

Predicates