Exemple #1
0
 private bool Equals(PipingSoilLayer other)
 {
     return(string.Equals(materialName, other.materialName) &&
            Top.Equals(other.Top) &&
            IsAquifer == other.IsAquifer &&
            BelowPhreaticLevel.Equals(other.BelowPhreaticLevel) &&
            DiameterD70.Equals(other.DiameterD70) &&
            Permeability.Equals(other.Permeability) &&
            Color.ToArgb().Equals(other.Color.ToArgb()));
 }
Exemple #2
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = Top.GetHashCode();
         hashCode = (hashCode * 397) ^ BelowPhreaticLevel.GetHashCode();
         hashCode = (hashCode * 397) ^ DiameterD70.GetHashCode();
         hashCode = (hashCode * 397) ^ Permeability.GetHashCode();
         return(hashCode);
     }
 }
Exemple #3
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);
     }
 }
Exemple #4
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));
 }