3 writes to _taskItem
Microsoft.Build (3)
Instance\ProjectItemInstance.cs (3)
151_taskItem = that._taskItem.DeepClone(newProject.IsImmutable); 595translator.Translate(ref _taskItem, TaskItem.FactoryForDeserialization); 737_taskItem = new TaskItem(
41 references to _taskItem
Microsoft.Build (41)
Instance\ProjectItemInstance.cs (41)
151_taskItem = that._taskItem.DeepClone(newProject.IsImmutable); 198return _taskItem.ItemSpec; 207_taskItem.ItemSpec = value; 219{ return _taskItem.IncludeEscaped; } 231return _taskItem.IncludeEscaped; 238_taskItem.IncludeEscaped = value; 255get { return _taskItem.MetadataCollection; } 263get { return _taskItem.DirectMetadataCount; } 285get { return new ReadOnlyCollection<string>(_taskItem.MetadataNames.Cast<string>()); } 330get { return _taskItem.MetadataCount; } 367return _taskItem.GetMetadataObject(name); 379return _taskItem.GetMetadata(name); 393return _taskItem.HasMetadata(name); 404return _taskItem.SetMetadataObject(name, evaluatedValue, false /* built-in metadata not allowed */); 415_taskItem.SetMetadata(metadataDictionary); 426_taskItem.RemoveMetadata(metadataName); 434return _taskItem.ToString(); 446return _taskItem.GetMetadataEscaped(name); 481return _taskItem.GetMetadataEscaped(name); 505((ITaskItem2)_taskItem).SetMetadataValueLiteral(metadataName, metadataValue); 513_taskItem.CopyMetadataTo(destinationItem); 524return _taskItem.CloneCustomMetadata(); 535return ((ITaskItem2)_taskItem).CloneCustomMetadataEscaped(); 538IEnumerable<KeyValuePair<string, string>> IMetadataContainer.EnumerateMetadata() => _taskItem.EnumerateMetadata(); 540void IMetadataContainer.ImportMetadata(IEnumerable<KeyValuePair<string, string>> metadata) => _taskItem.ImportMetadata(metadata); 550return _taskItem.GetMetadataEscaped(name); 574string value = _taskItem.GetMetadataEscaped(name); 613item._taskItem.SetMetadata(metadata); // Potential copy on write 635_taskItem.SetMetadata(metadataDictionary); 651_taskItem.SetMetadataOnTaskOutput(items); 853: this(item._taskItem, false /* no original itemspec */) 2032return CreateItem(source._taskItem.IncludeEscaped, source._taskItem.IncludeBeforeWildcardExpansionEscaped, source, definingProject); 2068item._taskItem.SetMetadata(metadata); 2090if (source._taskItem._itemDefinitions != null) 2092itemDefinitionsClone ??= new List<ProjectItemDefinitionInstance>(source._taskItem._itemDefinitions.Count + 1); 2093itemDefinitionsClone.AddRange(source._taskItem._itemDefinitions); 2103return new ProjectItemInstance(_project, ItemType, includeEscaped, includeBeforeWildcardExpansionEscaped, source._taskItem._directMetadata, itemDefinitionsClone, definingProject, useItemDefinitionsWithoutModification: false); 2333return x._taskItem.Equals(y._taskItem); 2343return obj._taskItem.GetHashCode();