/// <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);
     }
 }