in src/Microsoft.Azure.NotificationHubs/ApnsCredential.cs [237:255]
public override int GetHashCode()
{
if ((string.IsNullOrWhiteSpace(this.CertificateKey) || string.IsNullOrWhiteSpace(this.ApnsCertificate)) && string.IsNullOrWhiteSpace(this.Token))
{
return base.GetHashCode();
}
if (string.IsNullOrWhiteSpace(this.CertificateKey) && string.IsNullOrWhiteSpace(this.Token))
{
return this.ApnsCertificate.GetHashCode();
}
if (!string.IsNullOrWhiteSpace(this.Token))
{
return this.Token.GetHashCode();
}
return unchecked(this.CertificateKey.GetHashCode() ^ this.ApnsCertificate.GetHashCode());
}