public override int GetHashCode() { int hash = 1; if (Type != 0) { hash ^= Type.GetHashCode(); } if (Mode != 0) { hash ^= Mode.GetHashCode(); } if (MessageHistoryLimit != 0) { hash ^= MessageHistoryLimit.GetHashCode(); } if (Latch != false) { hash ^= Latch.GetHashCode(); } if (Topic.Length != 0) { hash ^= Topic.GetHashCode(); } return(hash); }