2 implementations of
Microsoft.Build (2)
Collections\ItemDictionary.cs (1)
114public ICollection<T> this[string itemtype]
Instance\ImmutableProjectCollections\ImmutableItemDictionary.cs (1)
47public ICollection<T> this[string itemType]
44 references to
Microsoft.Build (6)
BackEnd\Components\RequestBuilder\Lookup.cs (3)
523groupFound = scope.Items[itemType]; 601ICollection<ProjectItemInstance> existing = PrimaryTable[itemType]; 894ICollection<ProjectItemInstance> existing = table[itemType];
Definition\Project.cs (1)
4549return Items[itemType];
Instance\ProjectInstance.cs (2)
1678return _items[itemType]; 2511ICollection<ProjectItemInstance> itemList = _items[itemType];
Microsoft.Build.Engine.UnitTests (38)
BackEnd\BuildRequestConfiguration_Tests.cs (8)
377int fooCount = instance.ItemsToBuildWith["Foo"].Count; 379Assert.Single(instance.ItemsToBuildWith["Bar"]); 380Assert.Single(instance.ItemsToBuildWith["Baz"]); 381Assert.Equal("bazfile", instance.ItemsToBuildWith["Baz"].First().EvaluatedInclude); 404Assert.Equal(fooCount, instance.ItemsToBuildWith["Foo"].Count); 405Assert.Single(instance.ItemsToBuildWith["Bar"]); 406Assert.Single(instance.ItemsToBuildWith["Baz"]); 407Assert.Equal("bazfile", instance.ItemsToBuildWith["Baz"].First().EvaluatedInclude);
BackEnd\IntrinsicTask_Tests.cs (30)
2304Assert.Empty(p.ItemsToBuildWith["i0"]); 2309Assert.Single(p.ItemsToBuildWith["i0"]); 2337Assert.Empty(p.ItemsToBuildWith["i0"]); 2342Assert.Single(p.ItemsToBuildWith["i0"]); 2374Assert.Equal(3, p.ItemsToBuildWith["i0"].Count); 2375Assert.Single(p.ItemsToBuildWith["i1"]); 2379Assert.Equal(2, p.ItemsToBuildWith["i0"].Count); 2380Assert.Single(p.ItemsToBuildWith["i1"]); 2411Assert.Empty(p.ItemsToBuildWith["i0"]); 2415Assert.Single(p.ItemsToBuildWith["i0"]); 2416Assert.Equal("m1", p.ItemsToBuildWith["i0"].First().GetMetadataValue("m")); 2448Assert.Equal(2, p.ItemsToBuildWith["i0"].Count); 2449Assert.Equal(2, p.ItemsToBuildWith["i1"].Count); 2453Assert.Single(p.ItemsToBuildWith["i0"]); 2454Assert.Equal("a1", p.ItemsToBuildWith["i0"].First().EvaluatedInclude); 2455Assert.Empty(p.ItemsToBuildWith["i1"]); 2486Assert.Single(p.ItemsToBuildWith["i0"]); 2517Assert.Single(p.ItemsToBuildWith["i0"]); 3205ProjectItemInstance item = p.ItemsToBuildWith["i0"].First(); 3209item = p.ItemsToBuildWith["i0"].First(); 3251Assert.Single(p.ItemsToBuildWith["i0"]); 3252Assert.Single(p.ItemsToBuildWith["i1"]); 3253Assert.Equal("m0", p.ItemsToBuildWith["i0"].First().GetMetadataValue("m")); 3254Assert.Equal("n0", p.ItemsToBuildWith["i0"].First().GetMetadataValue("n")); 3255Assert.Equal("m1", p.ItemsToBuildWith["i1"].First().GetMetadataValue("m")); 3256Assert.Equal("n1", p.ItemsToBuildWith["i1"].First().GetMetadataValue("n")); 3259Assert.Single(p.ItemsToBuildWith["i0"]); 3260Assert.Empty(p.ItemsToBuildWith["i1"]); 3261Assert.Equal("m0", p.ItemsToBuildWith["i0"].First().GetMetadataValue("m")); 3262Assert.Equal("n0", p.ItemsToBuildWith["i0"].First().GetMetadataValue("n"));