4 writes to _properties
Microsoft.Build (4)
Collections\PropertyDictionary.cs (4)
52_properties = new RetrievableEntryHashSet<T>(MSBuildNameIgnoreCaseComparer.Default); 60_properties = new RetrievableEntryHashSet<T>(capacity, MSBuildNameIgnoreCaseComparer.Default); 80_properties = new RetrievableEntryHashSet<T>(comparer); 101_properties = propertiesHashSet;
31 references to _properties
Microsoft.Build (31)
Collections\PropertyDictionary.cs (31)
127lock (_properties) 129return _properties.Values; 153lock (_properties) 155return ((ICollection<T>)_properties).Count; 191lock (_properties) 193_properties.TryGetValue(name, out projectProperty); 212return new CopyOnReadEnumerable<T, TResult>(this, _properties, selector); 229lock (_properties) 231((ICollection<T>)_properties).Clear(); 241lock (_properties) 243return _properties.Values.GetEnumerator(); 252lock (_properties) 254return ((IEnumerable)_properties.Values).GetEnumerator(); 283lock (_properties) 315lock (_properties) 317return _properties.Get(name, startIndex, endIndex - startIndex + 1); 345lock (_properties) 347return _properties.ContainsKey(key); 394lock (_properties) 396if (_properties.TryGetValue(item.Key, out T value)) 433return ((IEnumerable<KeyValuePair<string, T>>)_properties).GetEnumerator(); 446lock (_properties) 448bool result = _properties.Remove(name); 462lock (_properties) 464_properties[projectProperty.Key] = projectProperty; 501lock (_properties) 503var dictionary = new Dictionary<string, string>(((ICollection<T>)_properties).Count, MSBuildNameIgnoreCaseComparer.Default); 516lock (_properties) 518foreach (var kvp in (ICollection<T>)_properties) 528lock (_properties) 530foreach (T property in (ICollection<T>)_properties)