9 writes to ItemFilters
Microsoft.Build (1)
BackEnd\BuildManager\RequestedProjectState.cs (1)
51result.ItemFilters = ItemFilters.ToDictionary(
Microsoft.Build.Engine.UnitTests (8)
BackEnd\BuildManager_Tests.cs (1)
497ItemFilters = new Dictionary<string, List<string>>
BackEnd\RequestedProjectState_Tests.cs (7)
53ItemFilters = items, 75ItemFilters = items, 98state1.ItemFilters = new Dictionary<string, List<string>>() 142ItemFilters = new Dictionary<string, List<string>>() 149ItemFilters = new Dictionary<string, List<string>>() 178ItemFilters = new Dictionary<string, List<string>>() 185ItemFilters = new Dictionary<string, List<string>>()
19 references to ItemFilters
Microsoft.Build (9)
BackEnd\BuildManager\RequestedProjectState.cs (7)
49if (ItemFilters is not null) 51result.ItemFilters = ItemFilters.ToDictionary( 85if (ItemFilters is null) 87if (another.ItemFilters is not null) 93else if (another.ItemFilters is not null) 95foreach (KeyValuePair<string, List<string>> kvp in ItemFilters) 97if (!another.ItemFilters.TryGetValue(kvp.Key, out List<string> metadata))
Instance\ProjectInstance.cs (2)
802if (filter.ItemFilters != null) 813foreach (var itemFilter in filter.ItemFilters)
Microsoft.Build.Engine.UnitTests (10)
BackEnd\RequestedProjectState_Tests.cs (10)
22clone.ItemFilters.Should().BeNull(); 36clone.ItemFilters.Should().BeNull(); 58clone.ItemFilters.Should().BeEquivalentTo(items); 62clone.ItemFilters.Count.Should().NotBe(items.Count); 80clone.ItemFilters.Should().BeEquivalentTo(items); 84clone.ItemFilters["item2"].Count.Should().NotBe(items["item2"].Count); 160state1.ItemFilters.Add("item3", null!); 166state1.ItemFilters.Clear(); 195state2.ItemFilters["item1"] = ["metadatum2"]; 201state1.ItemFilters["item1"] = [];