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