Skip to content

Commit d681c52

Browse files
committed
Making _immutableNonObjectTypesCache readonly
1 parent 685a4e3 commit d681c52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Components/Components/src/ChangeDetection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace Microsoft.AspNetCore.Components;
77

88
internal sealed class ChangeDetection
99
{
10-
private static ConcurrentDictionary<Type, bool> _immutableNonObjectTypesCache = new();
10+
private static readonly ConcurrentDictionary<Type, bool> _immutableNonObjectTypesCache = new();
1111
public static bool MayHaveChanged<T1, T2>(T1 oldValue, T2 newValue)
1212
{
1313
var oldIsNotNull = oldValue != null;

0 commit comments

Comments
 (0)