public override int GetHashCode() { unchecked { int hashCode = Name.GetHashCode(); return(PreconsolidationStresses.Aggregate(hashCode, (currentHashCode, stress) => (currentHashCode * 397) ^ stress.GetHashCode())); } }
private bool Equals(MacroStabilityInwardsSoilProfile2D other) { return(layers.SequenceEqual(other.layers) && PreconsolidationStresses.SequenceEqual(other.PreconsolidationStresses) && string.Equals(Name, other.Name)); }