/// <summary> /// Checks if equal to the specified instance. /// </summary> /// <param name="other">The other instance.</param> /// <returns> /// <c>true</c> if the specified <see cref="System.Object"/> is equal to this instance; otherwise, <c>false</c>. /// </returns> public bool Equals(BaseValidation other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(string.Equals(Field, other.Field) && string.Equals(Message, other.Message) && EntityID.Equals(other.EntityID)); }
/// <summary> /// Checks if equal to the specified instance. /// </summary> /// <param name="other">The other instance.</param> /// <returns> /// <c>true</c> if the specified <see cref="System.Object"/> is equal to this instance; otherwise, <c>false</c>. /// </returns> public bool Equals(BaseValidation other) { if (ReferenceEquals(null, other)) return false; if (ReferenceEquals(this, other)) return true; return string.Equals(Field, other.Field) && string.Equals(Message, other.Message) && EntityID.Equals(other.EntityID); }