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

            return
                ((
                     Uptime == other.Uptime ||
                     Uptime != null &&
                     Uptime.Equals(other.Uptime)
                     ) &&
                 (
                     Downtime == other.Downtime ||
                     Downtime != null &&
                     Downtime.Equals(other.Downtime)
                 ));
        }