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