/// <summary> /// Determines whether the specified <see cref="ValueWithType" /> is equal to the current <see cref="ValueWithType" />. /// </summary> /// <returns> /// true if the specified <see cref="ValueWithType" /> is equal to the current <see cref="ValueWithType" />; otherwise, false. /// </returns> /// <param name="other"> /// The <see cref="ValueWithType" /> to compare with the current <see cref="ValueWithType" />. /// </param> protected bool Equals(ValueWithType other) { return(Equals(this.Value, other.Value) && Equals(this.Type, other.Type)); }
/// <summary> /// Determines whether the specified <see cref="ValueWithType" /> is equal to the current <see cref="ValueWithType" />. /// </summary> /// <returns> /// true if the specified <see cref="ValueWithType" /> is equal to the current <see cref="ValueWithType" />; otherwise, false. /// </returns> /// <param name="other"> /// The <see cref="ValueWithType" /> to compare with the current <see cref="ValueWithType" />. /// </param> protected bool Equals(ValueWithType other) { return Equals(this.Value, other.Value) && Equals(this.Type, other.Type); }