2 writes to _listViewItems
System.Windows.Forms (2)
System\Windows\Forms\Controls\ListView\ListView.cs (2)
4599
_listViewItems
= null;
4691
_listViewItems
= [.. items];
21 references to _listViewItems
System.Windows.Forms (21)
System\Windows\Forms\Controls\ListView\ListView.cs (11)
3429
Debug.Assert(
_listViewItems
is not null, "listItemsArray is null, but the handle isn't created");
3432
foreach (ListViewItem listViewItem in
_listViewItems
)
4054
Debug.Assert(
_listViewItems
is not null, "listItemsArray is null, but the handle isn't created");
4055
_listViewItems
.Insert(displayIndex + i, item);
4596
if (
_listViewItems
is not null)
4598
listViewItemsToAdd = [..
_listViewItems
];
4685
Debug.Assert(
_listViewItems
is null, "listItemsArray not null, even though handle created");
5560
if (
_listViewItems
is not null)
5562
s += $", Items.Count: {
_listViewItems
.Count}";
5563
if (
_listViewItems
.Count > 0)
5565
string z =
_listViewItems
[0].ToString();
System\Windows\Forms\Controls\ListView\ListView.ListViewNativeItemCollection.cs (10)
91
Debug.Assert(_owner.
_listViewItems
is not null, "listItemsArray is null, but the handle isn't created");
92
return _owner.
_listViewItems
[index];
259
Debug.Assert(_owner.
_listViewItems
is null, "listItemsArray not null, even though handle created");
289
Debug.Assert(_owner.
_listViewItems
is not null, "listItemsArray is null, but the handle isn't created");
290
_owner.
_listViewItems
.Clear();
317
Debug.Assert(_owner.
_listViewItems
is not null, "listItemsArray is null, but the handle isn't created");
318
return _owner.
_listViewItems
.Contains(item);
420
Debug.Assert(_owner.
_listViewItems
is null, "listItemsArray not null, even though handle created");
428
Debug.Assert(_owner.
_listViewItems
is not null, "listItemsArray is null, but the handle isn't created");
429
_owner.
_listViewItems
.RemoveAt(index);