public bool Equals(MessageMapping other) { if (ReferenceEquals(null, other)) return false; if (ReferenceEquals(this, other)) return true; return Equals(other.Consumer, Consumer) && Equals(other.Message, Message) && other.Direct.Equals(Direct); }