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)
98lock (_itemLists) 100return _itemLists.Keys; 119lock (_itemLists) 121if (!_itemLists.TryGetValue(itemtype, out list)) 136lock (_itemLists) 138foreach (ICollection<T> list in _itemLists.Values) 143_itemLists.Clear(); 153return new CopyOnReadEnumerable<T, TResult>(this, _itemLists, selector); 161return new Enumerator(_itemLists.Values); 169return _itemLists.GetEnumerator(); 177lock (_itemLists) 179foreach (var itemTypeBucket in _itemLists) 230lock (_itemLists) 242lock (_itemLists) 250lock (_itemLists) 269lock (_itemLists) 283_itemLists.Remove(projectItem.Key); 300lock (_itemLists) 328lock (_itemLists) 330if (!_itemLists.TryGetValue(itemType, out LinkedList<T> list)) 333_itemLists[itemType] = list; 369lock (_itemLists) 371ErrorUtilities.VerifyThrow(!_itemLists.ContainsKey(itemType), "Should be none"); 372_itemLists.Add(itemType, new LinkedList<T>()); 383lock (_itemLists) 385if (_itemLists.TryGetValue(itemType, out LinkedList<T> list) && list.Count == 0) 396if (!_itemLists.TryGetValue(projectItem.Key, out LinkedList<T> list)) 399_itemLists[projectItem.Key] = list;