Пример #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));
        }
Пример #2
0
 /// <inheritdoc />
 public override void Visit(PackOffset packOffset)
 {
     Write(":").WriteSpace();
     Write("packoffset(");
     Write((Identifier)packOffset.Value);
     Write(")");
 }
Пример #3
0
 public override void Visit(PackOffset packOffset)
 {
 }
Пример #4
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);
        }