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

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

            return(base.Equals(other) && Equals(other.Value, Value));
        }
 /// <inheritdoc />
 public override void Visit(PackOffset packOffset)
 {
     Write(":").WriteSpace();
     Write("packoffset(");
     Write((Identifier)packOffset.Value);
     Write(")");
 }
 public override void Visit(PackOffset packOffset)
 {
 }
        /// <summary>
        /// Determines whether the specified <see cref="PackOffset"/> is equal to this instance.
        /// </summary>
        /// <param name="other">
        /// The <see cref="PackOffset"/> to compare with this instance.
        /// </param>
        /// <returns>
        /// <c>true</c> if the specified <see cref="PackOffset"/> is equal to this instance; otherwise, <c>false</c>.
        /// </returns>
        public bool Equals(PackOffset other)
        {
            if (ReferenceEquals(null, other))
            {
                return false;
            }

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

            return base.Equals(other) && Equals(other.Value, Value);
        }