/// <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)); }
public override void Visit(RegisterLocation registerLocation) { }
/// <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); }