Example #1
0
        public bool Equals(PeerSocketAddress other)
        {
            var t1 = InetAddress.Equals(other.InetAddress);
            var t2 = TcpPort.Equals(other.TcpPort);
            var t3 = UdpPort.Equals(other.UdpPort);

            return(t1 && t2 && t3);
        }
        /// <summary>
        /// Returns true if ComAdobeCqDamS7imagingImplIsImageServerComponentProperties instances are equal
        /// </summary>
        /// <param name="other">Instance of ComAdobeCqDamS7imagingImplIsImageServerComponentProperties to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ComAdobeCqDamS7imagingImplIsImageServerComponentProperties other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     TcpPort == other.TcpPort ||
                     TcpPort != null &&
                     TcpPort.Equals(other.TcpPort)
                     ) &&
                 (
                     AllowRemoteAccess == other.AllowRemoteAccess ||
                     AllowRemoteAccess != null &&
                     AllowRemoteAccess.Equals(other.AllowRemoteAccess)
                 ) &&
                 (
                     MaxRenderRgnPixels == other.MaxRenderRgnPixels ||
                     MaxRenderRgnPixels != null &&
                     MaxRenderRgnPixels.Equals(other.MaxRenderRgnPixels)
                 ) &&
                 (
                     MaxMessageSize == other.MaxMessageSize ||
                     MaxMessageSize != null &&
                     MaxMessageSize.Equals(other.MaxMessageSize)
                 ) &&
                 (
                     RandomAccessUrlTimeout == other.RandomAccessUrlTimeout ||
                     RandomAccessUrlTimeout != null &&
                     RandomAccessUrlTimeout.Equals(other.RandomAccessUrlTimeout)
                 ) &&
                 (
                     WorkerThreads == other.WorkerThreads ||
                     WorkerThreads != null &&
                     WorkerThreads.Equals(other.WorkerThreads)
                 ));
        }