/// <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 (Name != null) { hashCode = hashCode * 59 + Name.GetHashCode(); } if (Type != null) { hashCode = hashCode * 59 + Type.GetHashCode(); } if (FormatTarget != null) { hashCode = hashCode * 59 + FormatTarget.GetHashCode(); } if (TempFsFolder != null) { hashCode = hashCode * 59 + TempFsFolder.GetHashCode(); } if (FileThreshold != null) { hashCode = hashCode * 59 + FileThreshold.GetHashCode(); } if (MemoryUnit != null) { hashCode = hashCode * 59 + MemoryUnit.GetHashCode(); } if (UseOffHeapMemory != null) { hashCode = hashCode * 59 + UseOffHeapMemory.GetHashCode(); } if (DigestAlgorithm != null) { hashCode = hashCode * 59 + DigestAlgorithm.GetHashCode(); } if (MonitoringQueueSize != null) { hashCode = hashCode * 59 + MonitoringQueueSize.GetHashCode(); } if (CleanupDelay != null) { hashCode = hashCode * 59 + CleanupDelay.GetHashCode(); } if (PackageFilters != null) { hashCode = hashCode * 59 + PackageFilters.GetHashCode(); } if (PropertyFilters != null) { hashCode = hashCode * 59 + PropertyFilters.GetHashCode(); } return(hashCode); } }
/// <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 (Name != null) { hashCode = hashCode * 59 + Name.GetHashCode(); } if (Type != null) { hashCode = hashCode * 59 + Type.GetHashCode(); } if (ImportMode != null) { hashCode = hashCode * 59 + ImportMode.GetHashCode(); } if (AclHandling != null) { hashCode = hashCode * 59 + AclHandling.GetHashCode(); } if (PackageRoots != null) { hashCode = hashCode * 59 + PackageRoots.GetHashCode(); } if (PackageFilters != null) { hashCode = hashCode * 59 + PackageFilters.GetHashCode(); } if (PropertyFilters != null) { hashCode = hashCode * 59 + PropertyFilters.GetHashCode(); } if (TempFsFolder != null) { hashCode = hashCode * 59 + TempFsFolder.GetHashCode(); } if (UseBinaryReferences != null) { hashCode = hashCode * 59 + UseBinaryReferences.GetHashCode(); } if (AutoSaveThreshold != null) { hashCode = hashCode * 59 + AutoSaveThreshold.GetHashCode(); } if (CleanupDelay != null) { hashCode = hashCode * 59 + CleanupDelay.GetHashCode(); } if (FileThreshold != null) { hashCode = hashCode * 59 + FileThreshold.GetHashCode(); } if (MEGA_BYTES != null) { hashCode = hashCode * 59 + MEGA_BYTES.GetHashCode(); } if (UseOffHeapMemory != null) { hashCode = hashCode * 59 + UseOffHeapMemory.GetHashCode(); } if (DigestAlgorithm != null) { hashCode = hashCode * 59 + DigestAlgorithm.GetHashCode(); } if (MonitoringQueueSize != null) { hashCode = hashCode * 59 + MonitoringQueueSize.GetHashCode(); } if (PathsMapping != null) { hashCode = hashCode * 59 + PathsMapping.GetHashCode(); } if (StrictImport != null) { hashCode = hashCode * 59 + StrictImport.GetHashCode(); } return(hashCode); } }