Exemplo n.º 1
0
        /// <summary>
        /// Determines whether the specified <see cref="object"/> is equal to this instance.
        /// </summary>
        /// <param name="obj">The <see cref="object"/> to compare with this instance.</param>
        /// <returns><c>true</c> if the specified object is equal to this instance; otherwise, <c>false</c>.</returns>
        public override bool Equals(object obj)
        {
            RequestGetData other = obj as RequestGetData;

            if (other == null)
            {
                return(false);
            }

            if (!this.DataEquals(other))
            {
                return(false);
            }

            if (this.Watcher != other.Watcher)
            {
                return(false);
            }

            if (this.Options != other.Options)
            {
                return(false);
            }

            return(EqualityHelper.Equals(this.Watcher, other.Watcher));
        }
Exemplo n.º 2
0
        /// <inheritdoc />
        public override bool DataEquals(IRingMasterBackendRequest obj)
        {
            RequestGetData other = obj as RequestGetData;

            if (other == null)
            {
                return(false);
            }

            if (!base.DataEquals(other))
            {
                return(false);
            }

            return(true);
        }