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) 327return _properties.Get(name, startIndex, length); 351if (_properties is IRetrievableUnescapedValuedEntryHashSet unescapedProperties) 356if (_properties.TryGetEscapedValue(propertyName, out string escapedValue) && escapedValue != null) 386return _properties.ContainsKey(key); 435if (_properties.TryGetValue(item.Key, out T value)) 476_properties.CopyTo(array, arrayIndex); 494foreach (KeyValuePair<string, T> kvp in (IEnumerable<KeyValuePair<string, T>>)_properties) 514bool result = _properties.Remove(name); 530_properties[projectProperty.Key] = projectProperty; 569var dictionary = new Dictionary<string, string>(((ICollection<T>)_properties).Count, MSBuildNameIgnoreCaseComparer.Default); 571foreach (T property in _properties.Values) 582return _properties is IValueDictionaryConverter converter 591foreach (var kvp in (ICollection<T>)_properties) 612if (_properties is RetrievableValuedEntryHashSet<T> hashSet) 627ICollection<T> propertiesCollection = _properties;