/// <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 (Fullname != null) { hashCode = hashCode * 59 + Fullname.GetHashCode(); } if (Firstname != null) { hashCode = hashCode * 59 + Firstname.GetHashCode(); } if (Lastname != null) { hashCode = hashCode * 59 + Lastname.GetHashCode(); } if (Nickname != null) { hashCode = hashCode * 59 + Nickname.GetHashCode(); } if (Systemuserid != null) { hashCode = hashCode * 59 + Systemuserid.GetHashCode(); } if (Ownerid != null) { hashCode = hashCode * 59 + Ownerid.GetHashCode(); } return(hashCode); } }
/// <summary> /// Returns true if InlineResponseDefault5Value instances are equal /// </summary> /// <param name="other">Instance of InlineResponseDefault5Value to be compared</param> /// <returns>Boolean</returns> public bool Equals(InlineResponseDefault5Value other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( OdataEtag == other.OdataEtag || OdataEtag != null && OdataEtag.Equals(other.OdataEtag) ) && ( Nickname == other.Nickname || Nickname != null && Nickname.Equals(other.Nickname) ) && ( Fullname == other.Fullname || Fullname != null && Fullname.Equals(other.Fullname) ) && ( Firstname == other.Firstname || Firstname != null && Firstname.Equals(other.Firstname) ) && ( Lastname == other.Lastname || Lastname != null && Lastname.Equals(other.Lastname) ) && ( Azureactivedirectoryobjectid == other.Azureactivedirectoryobjectid || Azureactivedirectoryobjectid != null && Azureactivedirectoryobjectid.Equals(other.Azureactivedirectoryobjectid) ) && ( Systemuserid == other.Systemuserid || Systemuserid != null && Systemuserid.Equals(other.Systemuserid) ) && ( Ownerid == other.Ownerid || Ownerid != null && Ownerid.Equals(other.Ownerid) )); }
/// <summary> /// Returns true if InlineResponseDefaultCreatedby instances are equal /// </summary> /// <param name="other">Instance of InlineResponseDefaultCreatedby to be compared</param> /// <returns>Boolean</returns> public bool Equals(InlineResponseDefaultCreatedby other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Fullname == other.Fullname || Fullname != null && Fullname.Equals(other.Fullname) ) && ( Firstname == other.Firstname || Firstname != null && Firstname.Equals(other.Firstname) ) && ( Lastname == other.Lastname || Lastname != null && Lastname.Equals(other.Lastname) ) && ( Nickname == other.Nickname || Nickname != null && Nickname.Equals(other.Nickname) ) && ( Systemuserid == other.Systemuserid || Systemuserid != null && Systemuserid.Equals(other.Systemuserid) ) && ( Ownerid == other.Ownerid || Ownerid != null && Ownerid.Equals(other.Ownerid) )); }