/// <summary> /// Returns the hash code for this TokenCacheKey. /// </summary> /// <returns> /// A 32-bit signed integer hash code. /// </returns> public override int GetHashCode() { const string Delimiter = ":::"; return((this.Authority + Delimiter + MsalHelpers.AsSingleString(this.Scope) + Delimiter + this.ClientId.ToLower() + Delimiter + this.UniqueId + Delimiter + this.HomeObjectId + Delimiter + ((this.DisplayableId != null) ? this.DisplayableId.ToLower() : null) + Delimiter + ((this.Policy != null) ? this.Policy.ToLower() : null)).GetHashCode()); }