Index: Ringtoets/Piping/src/Ringtoets.Piping.Primitives/PipingSoilProfile.cs =================================================================== diff -u -r4d2b702d8a5e4570ee53fa499f8f5fa196acdb98 -r228ee54da56eded41bf81bba88cf54371f11d2bb --- Ringtoets/Piping/src/Ringtoets.Piping.Primitives/PipingSoilProfile.cs (.../PipingSoilProfile.cs) (revision 4d2b702d8a5e4570ee53fa499f8f5fa196acdb98) +++ Ringtoets/Piping/src/Ringtoets.Piping.Primitives/PipingSoilProfile.cs (.../PipingSoilProfile.cs) (revision 228ee54da56eded41bf81bba88cf54371f11d2bb) @@ -138,14 +138,13 @@ { unchecked { - var hashCode = 0; + int hashCode = Bottom.GetHashCode(); + hashCode = (hashCode * 397) ^ Name.GetHashCode(); + hashCode = (hashCode * 397) ^ (int)SoilProfileSourceType; foreach (PipingSoilLayer layer in layers) { hashCode = (hashCode * 397) ^ layer.GetHashCode(); } - hashCode = (hashCode * 397) ^ Bottom.GetHashCode(); - hashCode = (hashCode * 397) ^ Name.GetHashCode(); - hashCode = (hashCode * 397) ^ (int) SoilProfileSourceType; return hashCode; } }