3 writes to _itemLists
Microsoft.Build (3)
Collections\ItemDictionary.cs (3)
56
_itemLists
= new Dictionary<string, LinkedList<T>>(MSBuildNameIgnoreCaseComparer.Default);
67
_itemLists
= new Dictionary<string, LinkedList<T>>(initialItemTypesCapacity, MSBuildNameIgnoreCaseComparer.Default);
77
_itemLists
= new Dictionary<string, LinkedList<T>>(MSBuildNameIgnoreCaseComparer.Default);
28 references to _itemLists
Microsoft.Build (28)
Collections\ItemDictionary.cs (28)
98
lock (
_itemLists
)
100
return
_itemLists
.Keys;
119
lock (
_itemLists
)
121
if (!
_itemLists
.TryGetValue(itemtype, out list))
136
lock (
_itemLists
)
138
foreach (ICollection<T> list in
_itemLists
.Values)
143
_itemLists
.Clear();
153
return new CopyOnReadEnumerable<T, TResult>(this,
_itemLists
, selector);
161
return new Enumerator(
_itemLists
.Values);
169
return
_itemLists
.GetEnumerator();
177
lock (
_itemLists
)
179
foreach (var itemTypeBucket in
_itemLists
)
230
lock (
_itemLists
)
242
lock (
_itemLists
)
250
lock (
_itemLists
)
269
lock (
_itemLists
)
283
_itemLists
.Remove(projectItem.Key);
300
lock (
_itemLists
)
328
lock (
_itemLists
)
330
if (!
_itemLists
.TryGetValue(itemType, out LinkedList<T> list))
333
_itemLists
[itemType] = list;
369
lock (
_itemLists
)
371
ErrorUtilities.VerifyThrow(!
_itemLists
.ContainsKey(itemType), "Should be none");
372
_itemLists
.Add(itemType, new LinkedList<T>());
383
lock (
_itemLists
)
385
if (
_itemLists
.TryGetValue(itemType, out LinkedList<T> list) && list.Count == 0)
396
if (!
_itemLists
.TryGetValue(projectItem.Key, out LinkedList<T> list))
399
_itemLists
[projectItem.Key] = list;