Пример #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Width != 0F)
            {
                hash ^= Width.GetHashCode();
            }
            if (Heigth != 0F)
            {
                hash ^= Heigth.GetHashCode();
            }
            if (Depth != 0F)
            {
                hash ^= Depth.GetHashCode();
            }
            return(hash);
        }
Пример #2
0
 public override string ToString()
 {
     return(Heigth.ToString() + " " + Weight.ToString() + " " + BMI.ToString());
 }