/// <summary> /// Determines whether an other <see cref="StorageCredentials"/> object is equal to this one by comparing their SAS tokens, account names, key names, and key values. /// </summary> /// <param name="other">The <see cref="StorageCredentials"/> object to compare to this one.</param> /// <returns><c>true</c> if the two <see cref="StorageCredentials"/> objects are equal; otherwise, <c>false</c>.</returns> public bool Equals(StorageCredentials other) { if (other == null) { return(false); } else { return(string.Equals(this.SASToken, other.SASToken) && string.Equals(this.AccountName, other.AccountName) && string.Equals(this.KeyName, other.KeyName) && string.Equals(this.GetBase64EncodedKey(), other.GetBase64EncodedKey())); } }
/// <summary> /// Determines whether an other <see cref="StorageCredentials"/> object is equal to this one by comparing their SAS tokens, account names, key names, and key values. /// </summary> /// <param name="other">The <see cref="StorageCredentials"/> object to compare to this one.</param> /// <returns><c>true</c> if the two <see cref="StorageCredentials"/> objects are equal; otherwise, <c>false</c>.</returns> public bool Equals(StorageCredentials other) { if (other == null) { return false; } else { return string.Equals(this.SASToken, other.SASToken) && string.Equals(this.AccountName, other.AccountName) && string.Equals(this.KeyName, other.KeyName) && string.Equals(this.GetBase64EncodedKey(), other.GetBase64EncodedKey()); } }