3 writes to _itemsCollection
System.Windows.Forms (3)
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (3)
627_itemsCollection ??= CreateItemCollection(); 1813_itemsCollection = null; 1974_itemsCollection = null;
29 references to _itemsCollection
System.Windows.Forms (29)
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (29)
629return _itemsCollection; 724if (_itemsCollection is not null) 726int count = _itemsCollection.Count; 738if (_itemsCollection is not null) 740int count = _itemsCollection.Count; 842if (_itemsCollection is not null && SelectedItems.Count > 0) 852ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(value, _itemsCollection?.Count ?? 0); 950if (_itemsCollection is not null) 954int index = _itemsCollection.IndexOf(value); 1043if (_sorted && _itemsCollection is not null && _itemsCollection.Count >= 1) 1326int itemCount = (_itemsCollection is null) ? 0 : _itemsCollection.Count; 1373return FindStringInternal(s, _itemsCollection, startIndex, exact: false, ignoreCase: true); 1388return FindStringInternal(s, _itemsCollection, startIndex, exact: true, ignoreCase: true); 1411int itemCount = (_itemsCollection is null) ? 0 : _itemsCollection.Count; 1490if (_itemsCollection is not null && SelectedItems.GetSelected(index)) 1776if (_itemsCollection is not null) 1778int count = _itemsCollection.Count; 1782NativeAdd(_itemsCollection[i]); 1971ObjectCollection? savedItems = _itemsCollection; 2144int itemCount = (_itemsCollection is null) ? 0 : _itemsCollection.Count; 2183if (_sorted && _itemsCollection is not null) 2185_itemsCollection.InnerArray.Sort(); 2192int count = _itemsCollection.Count; 2195NativeAdd(_itemsCollection[i]); 2211if (_itemsCollection is not null)