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