5 writes to _directMetadata
Microsoft.Build (5)
Definition\ProjectItem.cs (5)
141_directMetadata = directMetadataCloned; 536_directMetadata ??= new PropertyDictionary<ProjectMetadata>(); 613_directMetadata ??= new PropertyDictionary<ProjectMetadata>(); 622siblingItem._directMetadata ??= new PropertyDictionary<ProjectMetadata>(); 844_directMetadata = new PropertyDictionary<ProjectMetadata>(_directMetadata.Count);
23 references to _directMetadata
Microsoft.Build (23)
Definition\ProjectItem.cs (23)
265get { return Link != null ? Link.DirectMetadata : (IEnumerable<ProjectMetadata>)_directMetadata ?? (IEnumerable<ProjectMetadata>)ReadOnlyEmptyCollection<ProjectMetadata>.Instance; } 277{ return Link != null ? Link.DirectMetadata.Count : _directMetadata != null ? _directMetadata.Count : 0; } 359if (_directMetadata != null) 361foreach (ProjectMetadata metadatum in _directMetadata) 419if (_directMetadata != null) 421result = _directMetadata[name]; 456if (_directMetadata?.Contains(name) == true) 485if (_directMetadata != null) 487ProjectMetadata metadatum = _directMetadata[name]; 542_directMetadata.Set(metadatum); 597if (_directMetadata?.Contains(name) == true) 599metadatum = _directMetadata[name]; 614_directMetadata.Set(metadatum); 623siblingItem._directMetadata.Set(metadatum.DeepClone()); 648ProjectMetadata metadatum = _directMetadata?[name]; 660metadatum = _directMetadata[name]; 663_directMetadata.Remove(name); 829if (_directMetadata == null) 837List<ProjectMetadata> temporary = new List<ProjectMetadata>(_directMetadata.Count); 839foreach (ProjectMetadata metadatum in _directMetadata) 844_directMetadata = new PropertyDictionary<ProjectMetadata>(_directMetadata.Count); 1062foreach (ProjectMetadata metadatum in source._directMetadata)