Enlighten - Information - Incorrect links for Equals and GetHashCode methods

Purpose

This page explains how Incorrect links for Equals and GetHashCode methods are formed.

Applicable in CAST Version

ReleaseYes/No
8.1.x
8.0.x
7.3.x
7.2.x
7.0.x

Details

Situation

Version : 7.0.13

Case 1: All GetHasCode() methods are linked to base class GetHashCode() method in Enlightenhow

Case 2: All Equals() methods are linked to base class Equals() method in Enlighten

Solution

This is normal behavior given how the inference engine (IE) works.
When a virtual call is encountered if the runtime type of the qualifier is unknown IE puts links towards all overrides of the base method (here System.Object::GetHashCode and System.Object::Equals)

Notes / Comments

Related Pages