/// <summary> /// Returns true if OrgApacheSlingResourceInventoryImplResourceInventoryPrinterFactoProperties instances are equal /// </summary> /// <param name="other">Instance of OrgApacheSlingResourceInventoryImplResourceInventoryPrinterFactoProperties to be compared</param> /// <returns>Boolean</returns> public bool Equals(OrgApacheSlingResourceInventoryImplResourceInventoryPrinterFactoProperties other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( FelixInventoryPrinterName == other.FelixInventoryPrinterName || FelixInventoryPrinterName != null && FelixInventoryPrinterName.Equals(other.FelixInventoryPrinterName) ) && ( FelixInventoryPrinterTitle == other.FelixInventoryPrinterTitle || FelixInventoryPrinterTitle != null && FelixInventoryPrinterTitle.Equals(other.FelixInventoryPrinterTitle) ) && ( Path == other.Path || Path != null && Path.Equals(other.Path) )); }
/// <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 (FelixInventoryPrinterName != null) { hashCode = hashCode * 59 + FelixInventoryPrinterName.GetHashCode(); } if (FelixInventoryPrinterTitle != null) { hashCode = hashCode * 59 + FelixInventoryPrinterTitle.GetHashCode(); } if (Path != null) { hashCode = hashCode * 59 + Path.GetHashCode(); } return(hashCode); } }