4 writes to _properties
Microsoft.Build (4)
Collections\PropertyDictionary.cs (4)
58_properties = new RetrievableValuedEntryHashSet<T>(MSBuildNameIgnoreCaseComparer.Default); 66_properties = new RetrievableValuedEntryHashSet<T>(capacity, MSBuildNameIgnoreCaseComparer.Default); 86_properties = new RetrievableValuedEntryHashSet<T>(comparer); 107_properties = propertiesHashSet;
24 references to _properties
Microsoft.Build (24)
Collections\PropertyDictionary.cs (24)
127return _properties.Values; 142bool ICollection<KeyValuePair<string, T>>.IsReadOnly => ((ICollection<T>)_properties).IsReadOnly; 153return ((ICollection<T>)_properties).Count; 193_properties.TryGetValue(name, out projectProperty); 212return new CopyOnReadEnumerable<T, TResult>(this, _properties, selector); 231((ICollection<T>)_properties).Clear(); 243foreach (T item in _properties.Values) 257foreach (T item in _properties.Values) 291foreach (T leftProp in _properties.Values) 323return _properties.Get(name, startIndex, endIndex - startIndex + 1); 341if (_properties is IRetrievableUnescapedValuedEntryHashSet unescapedProperties) 346if (_properties.TryGetEscapedValue(propertyName, out string escapedValue) && escapedValue != null) 376return _properties.ContainsKey(key); 425if (_properties.TryGetValue(item.Key, out T value)) 466_properties.CopyTo(array, arrayIndex); 484foreach (KeyValuePair<string, T> kvp in (IEnumerable<KeyValuePair<string, T>>)_properties) 504bool result = _properties.Remove(name); 520_properties[projectProperty.Key] = projectProperty; 559var dictionary = new Dictionary<string, string>(((ICollection<T>)_properties).Count, MSBuildNameIgnoreCaseComparer.Default); 561foreach (T property in _properties.Values) 572return _properties is IValueDictionaryConverter converter 581foreach (var kvp in (ICollection<T>)_properties) 602if (_properties is RetrievableValuedEntryHashSet<T> hashSet) 617ICollection<T> propertiesCollection = _properties;