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

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

            return(base.Equals(other) && Equals(other.Profile, Profile) && Equals(other.Register, Register));
        }
示例#2
0
 public override void Visit(RegisterLocation registerLocation)
 {
 }
示例#3
0
        /// <inheritdoc />
        public override void Visit(RegisterLocation registerLocation)
        {
            Write(":").WriteSpace();
            Write("register(");
            if (registerLocation.Profile != null)
            {
                Write(registerLocation.Profile);
                Write(",").WriteSpace();
            }

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

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

            return base.Equals(other) && Equals(other.Profile, Profile) && Equals(other.Register, Register);
        }