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