diff --git a/src/Microsoft.IdentityModel.JsonWebTokens/Json/JsonClaimSet.cs b/src/Microsoft.IdentityModel.JsonWebTokens/Json/JsonClaimSet.cs index 75aa609139..a47e488129 100644 --- a/src/Microsoft.IdentityModel.JsonWebTokens/Json/JsonClaimSet.cs +++ b/src/Microsoft.IdentityModel.JsonWebTokens/Json/JsonClaimSet.cs @@ -44,7 +44,7 @@ internal List Claims(string issuer) internal List CreateClaims(string issuer) { - var claims = new List(); + var claims = new List(_jsonClaims.Count); foreach (KeyValuePair kvp in _jsonClaims) CreateClaimFromObject(claims, kvp.Key, kvp.Value, issuer);