/// <summary> /// Returns true if ContactLogInformation instances are equal /// </summary> /// <param name="other">Instance of ContactLogInformation to be compared</param> /// <returns>Boolean</returns> public bool Equals(ContactLogInformation other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Type == other.Type || Type.Equals(other.Type) ) && ( When == other.When || When != null && When.Equals(other.When) ) && ( Who == other.Who || Who != null && other.Who != null && Who.SequenceEqual(other.Who) ) && ( Details == other.Details || Details != null && Details.Equals(other.Details) )); }