File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/Components/Components/src/Routing Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 22// The .NET Foundation licenses this file to you under the MIT license.
33
44using System . Buffers ;
5+ using System . Collections . Concurrent ;
56using System . Diagnostics . CodeAnalysis ;
67using System . Reflection ;
78using Microsoft . AspNetCore . Components . Reflection ;
@@ -15,7 +16,7 @@ internal sealed class QueryParameterValueSupplier
1516{
1617 public static void ClearCache ( ) => _cacheByType . Clear ( ) ;
1718
18- private static readonly Dictionary < Type , QueryParameterValueSupplier ? > _cacheByType = new ( ) ;
19+ private static readonly ConcurrentDictionary < Type , QueryParameterValueSupplier ? > _cacheByType = new ( ) ;
1920
2021 // These two arrays contain the same number of entries, and their corresponding positions refer to each other.
2122 // Holding the info like this means we can use Array.BinarySearch with less custom implementation.
You can’t perform that action at this time.
0 commit comments