3 writes to _xml
Microsoft.Build (3)
Definition\ProjectItem.cs (3)
113this._xml = xml; 137_xml = xml; 825_xml = _xml.ContainingProject.CreateItemElement(ItemType, ((IItem)this).EvaluatedIncludeEscaped);
28 references to _xml
Microsoft.Build (28)
Definition\ProjectItem.cs (28)
159{ return _xml; } 169{ return _xml.ItemType; } 191return _xml.Include; 251bool isImported = !Object.ReferenceEquals(_xml.ContainingProject, _project.Xml); 583Project.VerifyThrowInvalidOperationNotImported(_xml.ContainingProject); 588ErrorUtilities.VerifyThrowInvalidOperation(_xml.Parent?.Parent != null, "OM_ObjectIsNoLongerActive"); 592_project.SplitItemElementIfNecessary(_xml); 604ProjectMetadataElement metadatumXml = _xml.AddMetadata(name, unevaluatedValue); 618var siblingItems = _project.Items.Where(i => i._xml == _xml); 645Project.VerifyThrowInvalidOperationNotImported(_xml.ContainingProject); 646ErrorUtilities.VerifyThrowInvalidOperation(_xml.Parent?.Parent != null, "OM_ObjectIsNoLongerActive"); 657_project.SplitItemElementIfNecessary(_xml); 662_xml.RemoveChild(metadatum.Xml); 695Project.VerifyThrowInvalidOperationNotImported(_xml.ContainingProject); 696ErrorUtilities.VerifyThrowInvalidOperation(_xml.Parent?.Parent != null, "OM_ObjectIsNoLongerActive"); 705if (_xml.Count == 0 /* no metadata */ && _project.IsSuitableExistingItemXml(_xml, name, null /* no metadata */) && !FileMatcher.HasWildcardsSemicolonItemOrPropertyReferences(name)) 715bool splitOccurred = _project.SplitItemElementIfNecessary(_xml); 717_xml.Include = name; 725_evaluatedIncludeEscaped = _project.ExpandItemIncludeBestEffortLeaveEscaped(_xml); 791Project.VerifyThrowInvalidOperationNotImported(_xml.ContainingProject); 792ErrorUtilities.VerifyThrowInvalidOperation(_xml.Parent?.Parent != null, "OM_ObjectIsNoLongerActive"); 799_project.SplitItemElementIfNecessary(_xml); 806_xml.ChangeItemType(newItemType); 823ProjectItemElement oldXml = _xml; 825_xml = _xml.ContainingProject.CreateItemElement(ItemType, ((IItem)this).EvaluatedIncludeEscaped); 827oldXml.Parent.InsertBeforeChild(_xml, oldXml);