Exemplo n.º 1
0
        /// <summary>
        /// Returns true if Zones instances are equal
        /// </summary>
        /// <param name="other">Instance of Zones to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(Zones other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     HeartRate == other.HeartRate ||
                     HeartRate != null &&
                     HeartRate.Equals(other.HeartRate)
                     ) &&
                 (
                     Power == other.Power ||
                     Power != null &&
                     Power.Equals(other.Power)
                 ));
        }