public bool Equals(SyslogMessage other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(Equals(Header, other.Header) && (Equals(StructuredData, other.StructuredData) || (StructuredData.SequenceEqual(other.StructuredData))) && string.Equals(Message, other.Message)); }