Ejemplo n.º 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = AbovePhreaticLevel.GetHashCode();
         hashCode = (hashCode * 397) ^ BelowPhreaticLevel.GetHashCode();
         hashCode = (hashCode * 397) ^ Cohesion.GetHashCode();
         hashCode = (hashCode * 397) ^ FrictionAngle.GetHashCode();
         hashCode = (hashCode * 397) ^ ShearStrengthRatio.GetHashCode();
         hashCode = (hashCode * 397) ^ StrengthIncreaseExponent.GetHashCode();
         hashCode = (hashCode * 397) ^ Pop.GetHashCode();
         return(hashCode);
     }
 }
Ejemplo n.º 2
0
 private bool Equals(MacroStabilityInwardsSoilLayerData other)
 {
     return(string.Equals(materialName, other.materialName, StringComparison.InvariantCulture) &&
            IsAquifer == other.IsAquifer &&
            Color.ToArgb().Equals(other.Color.ToArgb()) &&
            UsePop == other.UsePop &&
            ShearStrengthModel == other.ShearStrengthModel &&
            AbovePhreaticLevel.Equals(other.AbovePhreaticLevel) &&
            BelowPhreaticLevel.Equals(other.BelowPhreaticLevel) &&
            Cohesion.Equals(other.Cohesion) &&
            FrictionAngle.Equals(other.FrictionAngle) &&
            ShearStrengthRatio.Equals(other.ShearStrengthRatio) &&
            StrengthIncreaseExponent.Equals(other.StrengthIncreaseExponent) &&
            Pop.Equals(other.Pop));
 }