diff --git a/src/Build/Collections/PropertyDictionary.cs b/src/Build/Collections/PropertyDictionary.cs index 96884a1914d..26be27d807b 100644 --- a/src/Build/Collections/PropertyDictionary.cs +++ b/src/Build/Collections/PropertyDictionary.cs @@ -135,16 +135,7 @@ ICollection IDictionary.Values /// Returns the number of properties in the collection /// [DebuggerBrowsable(DebuggerBrowsableState.Never)] - int ICollection>.Count - { - get - { - lock (_properties) - { - return ((ICollection)_properties).Count; - } - } - } + int ICollection>.Count => Count; /// /// Whether the collection is read-only. @@ -155,7 +146,7 @@ int ICollection>.Count /// /// Returns the number of property in the collection. /// - internal int Count + public int Count { get {