Example #1
0
        /// <summary>
        /// Returns true if ComAdobeGraniteOffloadingImplTransporterOffloadingDefaultTranspoProperties instances are equal
        /// </summary>
        /// <param name="other">Instance of ComAdobeGraniteOffloadingImplTransporterOffloadingDefaultTranspoProperties to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ComAdobeGraniteOffloadingImplTransporterOffloadingDefaultTranspoProperties other)
        {
            if (other is null) return false;
            if (ReferenceEquals(this, other)) return true;

            return 
                (
                    DefaultTransportAgentToWorkerPrefix == other.DefaultTransportAgentToWorkerPrefix ||
                    DefaultTransportAgentToWorkerPrefix != null &&
                    DefaultTransportAgentToWorkerPrefix.Equals(other.DefaultTransportAgentToWorkerPrefix)
                ) && 
                (
                    DefaultTransportAgentToMasterPrefix == other.DefaultTransportAgentToMasterPrefix ||
                    DefaultTransportAgentToMasterPrefix != null &&
                    DefaultTransportAgentToMasterPrefix.Equals(other.DefaultTransportAgentToMasterPrefix)
                ) && 
                (
                    DefaultTransportInputPackage == other.DefaultTransportInputPackage ||
                    DefaultTransportInputPackage != null &&
                    DefaultTransportInputPackage.Equals(other.DefaultTransportInputPackage)
                ) && 
                (
                    DefaultTransportOutputPackage == other.DefaultTransportOutputPackage ||
                    DefaultTransportOutputPackage != null &&
                    DefaultTransportOutputPackage.Equals(other.DefaultTransportOutputPackage)
                ) && 
                (
                    DefaultTransportReplicationSynchronous == other.DefaultTransportReplicationSynchronous ||
                    DefaultTransportReplicationSynchronous != null &&
                    DefaultTransportReplicationSynchronous.Equals(other.DefaultTransportReplicationSynchronous)
                ) && 
                (
                    DefaultTransportContentpackage == other.DefaultTransportContentpackage ||
                    DefaultTransportContentpackage != null &&
                    DefaultTransportContentpackage.Equals(other.DefaultTransportContentpackage)
                ) && 
                (
                    OffloadingTransporterDefaultEnabled == other.OffloadingTransporterDefaultEnabled ||
                    OffloadingTransporterDefaultEnabled != null &&
                    OffloadingTransporterDefaultEnabled.Equals(other.OffloadingTransporterDefaultEnabled)
                );
        }
Example #2
0
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
             if (DefaultTransportAgentToWorkerPrefix != null)
             hashCode = hashCode * 59 + DefaultTransportAgentToWorkerPrefix.GetHashCode();
             if (DefaultTransportAgentToMasterPrefix != null)
             hashCode = hashCode * 59 + DefaultTransportAgentToMasterPrefix.GetHashCode();
             if (DefaultTransportInputPackage != null)
             hashCode = hashCode * 59 + DefaultTransportInputPackage.GetHashCode();
             if (DefaultTransportOutputPackage != null)
             hashCode = hashCode * 59 + DefaultTransportOutputPackage.GetHashCode();
             if (DefaultTransportReplicationSynchronous != null)
             hashCode = hashCode * 59 + DefaultTransportReplicationSynchronous.GetHashCode();
             if (DefaultTransportContentpackage != null)
             hashCode = hashCode * 59 + DefaultTransportContentpackage.GetHashCode();
             if (OffloadingTransporterDefaultEnabled != null)
             hashCode = hashCode * 59 + OffloadingTransporterDefaultEnabled.GetHashCode();
         return hashCode;
     }
 }