From 8e000159e71593dd7e8bab3c6f50271a844c1e39 Mon Sep 17 00:00:00 2001 From: lindexi Date: Sat, 20 Jun 2020 16:43:53 +0800 Subject: [PATCH] Make the locker as readonly --- .../Collections/ManualObservableCollection!1.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Shared/HandyControl_Shared/Collections/ManualObservableCollection!1.cs b/src/Shared/HandyControl_Shared/Collections/ManualObservableCollection!1.cs index 39abfc7e..c4daa2c3 100644 --- a/src/Shared/HandyControl_Shared/Collections/ManualObservableCollection!1.cs +++ b/src/Shared/HandyControl_Shared/Collections/ManualObservableCollection!1.cs @@ -9,7 +9,7 @@ namespace HandyControl.Collections [Serializable] public class ManualObservableCollection : Collection, INotifyCollectionChanged, INotifyPropertyChanged { - private SimpleMonitor _monitor = new SimpleMonitor(); + private readonly SimpleMonitor _monitor = new SimpleMonitor(); private const string CountString = "Count";