diff options
Diffstat (limited to 'src/System.Private.CoreLib/shared/System/Collections/ObjectModel/Collection.cs')
-rw-r--r-- | src/System.Private.CoreLib/shared/System/Collections/ObjectModel/Collection.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/System.Private.CoreLib/shared/System/Collections/ObjectModel/Collection.cs b/src/System.Private.CoreLib/shared/System/Collections/ObjectModel/Collection.cs index 1e1b2c795..53272b386 100644 --- a/src/System.Private.CoreLib/shared/System/Collections/ObjectModel/Collection.cs +++ b/src/System.Private.CoreLib/shared/System/Collections/ObjectModel/Collection.cs @@ -15,7 +15,7 @@ namespace System.Collections.ObjectModel { private IList<T> items; // Do not rename (binary serialization) [NonSerialized] - private Object _syncRoot; + private object _syncRoot; public Collection() { @@ -195,7 +195,7 @@ namespace System.Collections.ObjectModel } else { - System.Threading.Interlocked.CompareExchange<Object>(ref _syncRoot, new Object(), null); + System.Threading.Interlocked.CompareExchange<object>(ref _syncRoot, new object(), null); } } return _syncRoot; |