Пример #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()));
 }
Пример #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);
     }
 }