4 writes to _metadata
Microsoft.Build (4)
Instance\ProjectItemDefinitionInstance.cs (4)
65_metadata = copyOnWriteMetadataDictionary; 77_metadata = metadata; 199_metadata ??= new CopyOnWritePropertyDictionary<ProjectMetadataInstance>(); 226translator.TranslateDictionary(ref _metadata, ProjectMetadataInstance.FactoryForDeserialization, CreateMetadataCollection);
8 references to _metadata
Microsoft.Build (8)
Instance\ProjectItemDefinitionInstance.cs (8)
105if (_metadata == null) 110return new ReadOnlyCollection<ProjectMetadataInstance>(_metadata.Values); 119get { return (_metadata == null) ? 0 : _metadata.Count; } 125public IEnumerable<string> MetadataNames => _metadata == null ? [] : _metadata.Keys; 144return _metadata?[name]; 202_metadata[xml.Name] = metadatum; 214foreach (var kvp in _metadata)