diff --git a/src/Microsoft.IdentityModel.Tokens/InMemoryCryptoProviderCache.cs b/src/Microsoft.IdentityModel.Tokens/InMemoryCryptoProviderCache.cs index 37b91bf4ab..d97e5c3b55 100644 --- a/src/Microsoft.IdentityModel.Tokens/InMemoryCryptoProviderCache.cs +++ b/src/Microsoft.IdentityModel.Tokens/InMemoryCryptoProviderCache.cs @@ -102,12 +102,7 @@ protected override string GetCacheKey(SecurityKey securityKey, string algorithm, private static string GetCacheKeyPrivate(SecurityKey securityKey, string algorithm, string typeofProvider) { - return string.Format(CultureInfo.InvariantCulture, - "{0}-{1}-{2}-{3}", - securityKey.GetType(), - securityKey.InternalId, - algorithm, - typeofProvider); + return $"{securityKey.GetType()}-{securityKey.InternalId}-{algorithm}-{typeofProvider}"; } ///