示例#1
0
        /// <summary>
        ///   Determines whether the specified <see cref = "Semantic" /> is equal to this instance.
        /// </summary>
        /// <param name = "other">The <see cref = "Semantic" /> to compare with this instance.</param>
        /// <returns>
        ///   <c>true</c> if the specified <see cref = "Semantic" /> is equal to this instance; otherwise, <c>false</c>.
        /// </returns>
        /// <inheritdoc />
        public bool Equals(Semantic other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }

            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return(base.Equals(other) && Equals(other.Name, Name));
        }
示例#2
0
 public override void Visit(Semantic semantic)
 {
 }
示例#3
0
 /// <inheritdoc />
 public override void Visit(Semantic semantic)
 {
     Write(":").WriteSpace();
     Write(semantic.Name);
 }
示例#4
0
        /// <summary>
        ///   Determines whether the specified <see cref = "Semantic" /> is equal to this instance.
        /// </summary>
        /// <param name = "other">The <see cref = "Semantic" /> to compare with this instance.</param>
        /// <returns>
        ///   <c>true</c> if the specified <see cref = "Semantic" /> is equal to this instance; otherwise, <c>false</c>.
        /// </returns>
        /// <inheritdoc />
        public bool Equals(Semantic other)
        {
            if (ReferenceEquals(null, other))
            {
                return false;
            }

            if (ReferenceEquals(this, other))
            {
                return true;
            }

            return base.Equals(other) && Equals(other.Name, Name);
        }
示例#5
0
 public virtual void Visit(Semantic semantic)
 {
     Write(":").WriteSpace();
     Write(semantic.Name);
 }