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(); 249if (_properties is RetrievableValuedEntryHashSet<T> hashSet) 258foreach (T item in _properties.Values) 298foreach (T leftProp in _properties.Values) 330return _properties.Get(name, startIndex, endIndex - startIndex + 1); 348if (_properties is IRetrievableUnescapedValuedEntryHashSet unescapedProperties) 353if (_properties.TryGetEscapedValue(propertyName, out string escapedValue) && escapedValue != null) 383return _properties.ContainsKey(key); 432if (_properties.TryGetValue(item.Key, out T value)) 473_properties.CopyTo(array, arrayIndex); 491foreach (KeyValuePair<string, T> kvp in (IEnumerable<KeyValuePair<string, T>>)_properties) 511bool result = _properties.Remove(name); 527_properties[projectProperty.Key] = projectProperty; 566var dictionary = new Dictionary<string, string>(((ICollection<T>)_properties).Count, MSBuildNameIgnoreCaseComparer.Default); 568foreach (T property in _properties.Values) 579return _properties is IValueDictionaryConverter converter 588foreach (var kvp in (ICollection<T>)_properties) 609if (_properties is RetrievableValuedEntryHashSet<T> hashSet) 624ICollection<T> propertiesCollection = _properties;