public override int GetHashCode() { int hc = ProtocolVersion.ToLowerInvariant().GetHashCode(); hc ^= ReceivedBy.ToLowerInvariant().GetHashCode(); if (!string.IsNullOrEmpty(ProtocolName)) { hc ^= ProtocolName.ToLowerInvariant().GetHashCode(); } if (!string.IsNullOrEmpty(Comment)) { hc ^= Comment.GetHashCode(); } return(hc); }