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)
135return _properties.Values; 150bool ICollection<KeyValuePair<string, T>>.IsReadOnly => ((ICollection<T>)_properties).IsReadOnly; 161return ((ICollection<T>)_properties).Count; 201_properties.TryGetValue(name, out projectProperty); 220return new CopyOnReadEnumerable<T, TResult>(this, _properties, selector); 239((ICollection<T>)_properties).Clear(); 251foreach (T item in _properties.Values) 265foreach (T item in _properties.Values) 299foreach (T leftProp in _properties.Values) 331return _properties.Get(name, startIndex, endIndex - startIndex + 1); 349if (_properties is IRetrievableUnescapedValuedEntryHashSet unescapedProperties) 354if (_properties.TryGetEscapedValue(propertyName, out string escapedValue) && escapedValue != null) 384return _properties.ContainsKey(key); 433if (_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;