public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Protocol != null ? Protocol.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (TopicName != null ? TopicName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (QueueName != null ? QueueName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (SubscriptionName != null ? SubscriptionName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ConnectionName != null ? ConnectionName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Durable.GetHashCode();
         return(hashCode);
     }
 }
Exemple #2
0
        public override int GetHashCode()
        {
            unchecked
            {
                var hashCode = ProjectName?.GetHashCode() ?? 0;
                hashCode = hashCode * 397 + (DriverName?.GetHashCode() ?? 0);
                hashCode = hashCode * 397 + (ConfiguredDriverType?.GetHashCode() ?? 0);
                hashCode = hashCode * 397 + (ConfiguredObjectType?.GetHashCode() ?? 0);
                hashCode = hashCode * 397 + (ConfiguredDriverExeName?.GetHashCode() ?? 0);
                hashCode = hashCode * 397 + (ConnectionName?.GetHashCode() ?? 0);
                hashCode = hashCode * 397 + (NetAddress?.GetHashCode() ?? 0);
                hashCode = hashCode * 397 + (PrimaryIpAddress?.GetHashCode() ?? 0);
                hashCode = hashCode * 397 + PortNumber;
                hashCode = hashCode * 397 + UnitId;
                hashCode = hashCode * 397 + Offset.GetHashCode();
                hashCode = hashCode * 397 + (int)StartOffset;
                hashCode = hashCode * 397 + IsEnabled.GetHashCode();
                hashCode = hashCode * 397 + IsSerial.GetHashCode();
                hashCode = hashCode * 397 + IsMultiMaster.GetHashCode();
                hashCode = hashCode * 397 + SkipRegister.GetHashCode();

                return(hashCode);
            }
        }
 /// <inheritdoc />
 public override int GetHashCode()
 {
     return(ConnectionName.GetHashCode());
 }