1 write to OwningCollection
Microsoft.Build.Engine.OM.UnitTests (1)
ObjectModelRemoting\RemoteProjectsProviderMock\ExporterMock.cs (1)
119
this.
OwningCollection
= (ProjectCollectionLinker)context;
50 references to OwningCollection
Microsoft.Build.Engine.OM.UnitTests (50)
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectElementContainerLink.cs (8)
23
this.ContainerXml.InsertAfterChild(child.Import(
OwningCollection
), reference.Import(
OwningCollection
));
28
this.ContainerXml.InsertBeforeChild(child.Import(
OwningCollection
), reference.Import(
OwningCollection
));
33
ProjectElementContainerLink.AddInitialChild(this.ContainerXml, child.Import(
OwningCollection
));
38
var pre = (ProjectRootElement)factory.Import(
OwningCollection
);
39
var pec = (ProjectElementContainer)parent.Import(
OwningCollection
);
46
this.ContainerXml.RemoveChild(child.Import(this.
OwningCollection
));
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectElementLink.cs (3)
16
return this.
OwningCollection
.ExportElement(xml);
45
this.Source.CopyFrom(element.Import(this.
OwningCollection
));
50
var pre = (ProjectRootElement)owner.Import(
OwningCollection
);
ObjectModelRemoting\RemoteProjectsProviderMock\EvaluationLinkMocks\MockProjectItemDefinitionLink.cs (4)
21
public MockProjectLinkRemoter Project => this.
OwningCollection
.Export<Project, MockProjectLinkRemoter>(this.Source.Project);
23
public ICollection<MockProjectMetadataLinkRemoter> Metadata => this.
OwningCollection
.ExportCollection<ProjectMetadata, MockProjectMetadataLinkRemoter>(this.Source.Metadata);
25
=> this.
OwningCollection
.Export<ProjectMetadata, MockProjectMetadataLinkRemoter>(this.Source.GetMetadata(name));
28
=> this.
OwningCollection
.Export<ProjectMetadata, MockProjectMetadataLinkRemoter>(this.Source.SetMetadataValue(name, unevaluatedValue));
ObjectModelRemoting\RemoteProjectsProviderMock\EvaluationLinkMocks\MockProjectItemLink.cs (6)
22
public MockProjectLinkRemoter Project => this.
OwningCollection
.Export<Project, MockProjectLinkRemoter>(this.Source.Project);
23
public MockProjectItemElementLinkRemoter Xml => (MockProjectItemElementLinkRemoter)this.
OwningCollection
.ExportElement(this.Source.Xml);
25
public ICollection<MockProjectMetadataLinkRemoter> MetadataCollection => this.
OwningCollection
.ExportCollection<ProjectMetadata, MockProjectMetadataLinkRemoter>(this.Source.Metadata);
26
public ICollection<MockProjectMetadataLinkRemoter> DirectMetadata => this.
OwningCollection
.ExportCollection<ProjectMetadata, MockProjectMetadataLinkRemoter>(this.Source.DirectMetadata);
29
=> this.
OwningCollection
.Export<ProjectMetadata, MockProjectMetadataLinkRemoter>(this.Source.GetMetadata(name));
32
=> this.
OwningCollection
.Export<ProjectMetadata, MockProjectMetadataLinkRemoter>(this.Source.SetMetadataValue(name, unevaluatedValue, propagateMetadataToSiblingItems));
ObjectModelRemoting\RemoteProjectsProviderMock\EvaluationLinkMocks\MockProjectLink.cs (21)
28
public MockProjectElementLinkRemoter Xml => this.
OwningCollection
.ExportElement(this.Source.Xml);
41
=> this.
OwningCollection
.ExportCollection<ProjectProperty, MockProjectPropertyLinkRemoter>(this.Source.Properties);
46
=> this.
OwningCollection
.ExportDictionary<string, ProjectItemDefinition, MockProjectItemDefinitionLinkRemoter>(this.Source.ItemDefinitions);
48
public ICollection<MockProjectItemLinkRemoter> Items => this.
OwningCollection
.ExportCollection<ProjectItem, MockProjectItemLinkRemoter>(this.Source.Items);
50
public ICollection<MockProjectItemLinkRemoter> ItemsIgnoringCondition => this.
OwningCollection
.ExportCollection<ProjectItem, MockProjectItemLinkRemoter>(this.Source.ItemsIgnoringCondition);
52
public IList<RemotedResolvedImport> Imports => this.Source.Imports.ConvertCollection<RemotedResolvedImport, ResolvedImport>((a) => a.Export(this.
OwningCollection
));
55
=> this.Source.Imports.ConvertCollection<RemotedResolvedImport, ResolvedImport>((a) => a.Export(this.
OwningCollection
));
58
=> this.
OwningCollection
.ExportCollection<ProjectProperty, MockProjectPropertyLinkRemoter>(this.Source.AllEvaluatedProperties);
62
=> this.
OwningCollection
.ExportCollection<ProjectMetadata, MockProjectMetadataLinkRemoter>(this.Source.AllEvaluatedItemDefinitionMetadata);
64
public ICollection<MockProjectItemLinkRemoter> AllEvaluatedItems => this.
OwningCollection
.ExportCollection<ProjectItem, MockProjectItemLinkRemoter>(this.Source.AllEvaluatedItems);
73
=> this.
OwningCollection
.ExportCollection<ProjectItem, MockProjectItemLinkRemoter>(this.Source.AddItem(itemType, unevaluatedInclude, metadata));
75
=> this.
OwningCollection
.ExportCollection<ProjectItem, MockProjectItemLinkRemoter>(this.Source.AddItemFast(itemType, unevaluatedInclude, metadata));
80
=> this.
OwningCollection
.ExportCollection<ProjectItem, MockProjectItemLinkRemoter>(this.Source.GetItems(itemType));
83
=> this.
OwningCollection
.ExportCollection<ProjectItem, MockProjectItemLinkRemoter>(this.Source.GetItemsByEvaluatedInclude(evaluatedInclude));
86
=> this.
OwningCollection
.ExportCollection<ProjectItem, MockProjectItemLinkRemoter>(this.Source.GetItemsIgnoringCondition(itemType));
89
=> this.
OwningCollection
.ExportCollection(this.Source.GetLogicalProject());
91
public MockProjectPropertyLinkRemoter GetProperty(string name) => this.
OwningCollection
.Export<ProjectProperty, MockProjectPropertyLinkRemoter>(this.Source.GetProperty(name));
97
public bool RemoveItem(MockProjectItemLinkRemoter item) => this.Source.RemoveItem(this.
OwningCollection
.Import<ProjectItem, MockProjectItemLinkRemoter>(item));
100
=> this.Source.RemoveItems(this.
OwningCollection
.ImportCollection<ProjectItem, MockProjectItemLinkRemoter>(items));
103
=> this.Source.RemoveProperty(this.
OwningCollection
.Import<ProjectProperty, MockProjectPropertyLinkRemoter>(propertyRemoter));
113
=> this.
OwningCollection
.Export<ProjectProperty, MockProjectPropertyLinkRemoter>(this.Source.SetProperty(name, unevaluatedValue));
ObjectModelRemoting\RemoteProjectsProviderMock\EvaluationLinkMocks\MockProjectMetadataLink.cs (4)
34
return this.
OwningCollection
.Export<ProjectItem, MockProjectItemLinkRemoter>(itemParent);
37
return this.
OwningCollection
.Export<ProjectItemDefinition, MockProjectItemDefinitionLinkRemoter>((ProjectItemDefinition)parent);
41
public MockProjectMetadataElementLinkRemoter Xml => (MockProjectMetadataElementLinkRemoter)this.
OwningCollection
.ExportElement(this.Source.Xml);
43
public MockProjectMetadataLinkRemoter Predecessor => this.
OwningCollection
.Export<ProjectMetadata, MockProjectMetadataLinkRemoter>(this.Source.Predecessor);
ObjectModelRemoting\RemoteProjectsProviderMock\EvaluationLinkMocks\MockProjectPropertyLink.cs (2)
21
public MockProjectLinkRemoter Project => this.
OwningCollection
.Export<Project, MockProjectLinkRemoter>(this.Source.Project);
29
public MockProjectPropertyLinkRemoter Predecessor => this.
OwningCollection
.Export<ProjectProperty, MockProjectPropertyLinkRemoter>(this.Source.Predecessor);
ObjectModelRemoting\RemoteProjectsProviderMock\ExporterMock.cs (2)
112
=> this.
OwningCollection
.ExportElement(obj);
114
public UInt32 HostCollectionId => this.
OwningCollection
.CollectionId;