/// <summary>
        /// Indicates whether the current object is equal to another object of the same type.
        /// </summary>
        /// <param name="other">An object to compare with this object.</param>
        /// <returns>
        /// true if the current object is equal to the <paramref name="other"/> parameter; otherwise, false.
        /// </returns>
        public override bool Equals(QueryAnnotation other)
        {
            var afterCast = other as ODataCanonicalFunctionNameAnnotation;
            if (afterCast == null)
            {
                return false;
            }

            return afterCast.Name == this.Name;
        }
Exemple #2
0
        /// <summary>
        /// Indicates whether the current object is equal to another object of the same type.
        /// </summary>
        /// <param name="other">An object to compare with this object.</param>
        /// <returns>
        /// true if the current object is equal to the <paramref name="other"/> parameter; otherwise, false.
        /// </returns>
        public override bool Equals(QueryAnnotation other)
        {
            var afterCast = other as ODataCanonicalFunctionNameAnnotation;

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

            return(afterCast.Name == this.Name);
        }
 /// <summary>
 /// Indicates whether the current object is equal to another object of the same type.
 /// </summary>
 /// <param name="other">An object to compare with this object.</param>
 /// <returns>
 /// true if the current object is equal to the <paramref name="other"/> parameter; otherwise, false.
 /// </returns>
 public override bool Equals(QueryAnnotation other)
 {
     return(object.ReferenceEquals(this, other));
 }
 /// <summary>
 /// Indicates whether the current object is equal to another object of the same type.
 /// </summary>
 /// <param name="other">An object to compare with this object.</param>
 /// <returns>
 /// true if the current object is equal to the <paramref name="other"/> parameter; otherwise, false.
 /// </returns>
 public override bool Equals(QueryAnnotation other)
 {
     return object.ReferenceEquals(this, other);
 }