4 writes to _properties
Microsoft.Build (4)
Collections\PropertyDictionary.cs (4)
53_properties = new RetrievableValuedEntryHashSet<T>(MSBuildNameIgnoreCaseComparer.Default); 61_properties = new RetrievableValuedEntryHashSet<T>(capacity, MSBuildNameIgnoreCaseComparer.Default); 81_properties = new RetrievableValuedEntryHashSet<T>(comparer); 102_properties = propertiesHashSet;
32 references to _properties
Microsoft.Build (32)
Collections\PropertyDictionary.cs (32)
128lock (_properties) 130return _properties.Values; 154lock (_properties) 156return ((ICollection<T>)_properties).Count; 192lock (_properties) 194_properties.TryGetValue(name, out projectProperty); 213return new CopyOnReadEnumerable<T, TResult>(this, _properties, selector); 230lock (_properties) 232((ICollection<T>)_properties).Clear(); 242lock (_properties) 244return _properties.Values.GetEnumerator(); 253lock (_properties) 255return ((IEnumerable)_properties.Values).GetEnumerator(); 284lock (_properties) 316lock (_properties) 318return _properties.Get(name, startIndex, endIndex - startIndex + 1); 336if (_properties.TryGetEscapedValue(propertyName, out string escapedValue) && escapedValue != null) 364lock (_properties) 366return _properties.ContainsKey(key); 413lock (_properties) 415if (_properties.TryGetValue(item.Key, out T value)) 452return ((IEnumerable<KeyValuePair<string, T>>)_properties).GetEnumerator(); 465lock (_properties) 467bool result = _properties.Remove(name); 481lock (_properties) 483_properties[projectProperty.Key] = projectProperty; 520lock (_properties) 522var dictionary = new Dictionary<string, string>(((ICollection<T>)_properties).Count, MSBuildNameIgnoreCaseComparer.Default); 535lock (_properties) 537foreach (var kvp in (ICollection<T>)_properties) 555lock (_properties) 557foreach (T property in (ICollection<T>)_properties)