override of getHashCode in PlotElement

Oystein Bjorke 10 years ago 0
This discussion was imported from CodePlex

benjaminrupp wrote at 2014-04-15 08:42:

Hi,

what is the reason for overriding GetHashCode in PlotElement?
In my opinion this is really risky cause it is now no more possible to compare, i.e. axes or hold dictionarys of axes.

Best regards

Benjamin

objo wrote at 2014-04-16 08:51:

PlotElement.GetHashCode is used by the HeatMapSeries to check whether the ColorAxis has changed.
Since this is a reference type I guess you have a point, we can change the implementation of HeatMapSeries and revert to the default GetHashCode in PlotElement.

objo wrote at 2014-04-16 09:13:

change committed