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

            return
                ((
                     Rtr == other.Rtr ||
                     Rtr != null &&
                     Rtr.Equals(other.Rtr)
                     ) &&
                 (
                     Rtd == other.Rtd ||
                     Rtd != null &&
                     Rtd.Equals(other.Rtd)
                 ) &&
                 (
                     Itr == other.Itr ||
                     Itr != null &&
                     Itr.Equals(other.Itr)
                 ) &&
                 (
                     Itd == other.Itd ||
                     Itd != null &&
                     Itd.Equals(other.Itd)
                 ) &&
                 (
                     Catr == other.Catr ||
                     Catr != null &&
                     Catr.Equals(other.Catr)
                 ) &&
                 (
                     Tatr == other.Tatr ||
                     Tatr != null &&
                     Tatr.Equals(other.Tatr)
                 ));
        }