File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/Components/Components/src/Routing Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 33
44using System ;
55using System . Buffers ;
6- using System . Collections . Generic ;
6+ using System . Collections . Concurrent ;
77using System . Diagnostics . CodeAnalysis ;
88using System . Reflection ;
99using Microsoft . AspNetCore . Components . Reflection ;
@@ -17,7 +17,7 @@ internal sealed class QueryParameterValueSupplier
1717 {
1818 public static void ClearCache ( ) => _cacheByType . Clear ( ) ;
1919
20- private static readonly Dictionary < Type , QueryParameterValueSupplier ? > _cacheByType = new ( ) ;
20+ private static readonly ConcurrentDictionary < Type , QueryParameterValueSupplier ? > _cacheByType = new ( ) ;
2121
2222 // These two arrays contain the same number of entries, and their corresponding positions refer to each other.
2323 // 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