/// <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 (Enabled != null) { hashCode = hashCode * 59 + Enabled.GetHashCode(); } if (ConfigPath != null) { hashCode = hashCode * 59 + ConfigPath.GetHashCode(); } if (FallbackPaths != null) { hashCode = hashCode * 59 + FallbackPaths.GetHashCode(); } if (ConfigCollectionInheritancePropertyNames != null) { hashCode = hashCode * 59 + ConfigCollectionInheritancePropertyNames.GetHashCode(); } return(hashCode); } }
public override int GetHashCode() { unchecked { var hashCode = LeaseName.GetHashCode(); hashCode = (hashCode * 397) ^ ConfigPath.GetHashCode(); hashCode = (hashCode * 397) ^ ClientName.GetHashCode(); return(hashCode); } }