Reverse patches that should have gone to my fork rather than to head
[mono.git] / mcs / class / WindowsBase / System.Collections.ObjectModel / ObservableCollection.cs
index bcc4440e109d423770f5977678b1e59dad6e8187..1ea166cd9ac3134a1165f5513852e53a8112fb9d 100644 (file)
@@ -44,7 +44,7 @@ namespace System.Collections.ObjectModel
        public class ObservableCollection<T> : Collection<T>, INotifyCollectionChanged, INotifyPropertyChanged {
                
                private class Reentrant : IDisposable {
-                       private int _busyCount = 0;
+                       private int count = 0;
 
                        public Reentrant()
                        {
@@ -52,17 +52,17 @@ namespace System.Collections.ObjectModel
 
                        public void Enter()
                        {
-                               _busyCount++;
+                               count++;
                        }
 
                        public void Dispose()
                        {
-                               _busyCount--;
+                               count--;
                        }
 
                        public bool Busy
                        {
-                               get { return _busyCount > 0; }
+                               get { return count > 0; }
                        }
                }