11 references to _list
System.Windows.Forms.Primitives (11)
System\Collections\Generic\WeakRefCollection.cs (11)
23
_scavenge = !
_list
[index].TryGetTarget(out T? target);
29
_list
[index] = new(value);
40
if (!
_list
[i].TryGetTarget(out T? _))
42
_list
.RemoveAt(i);
49
public void RemoveAt(int index) =>
_list
.RemoveAt(index);
56
_list
.RemoveAt(index);
62
for (int i = 0; i <
_list
.Count; i++)
64
if (!
_list
[i].TryGetTarget(out T? target))
86
_list
.Add(new(value));
89
public int Count =>
_list
.Count;
93
foreach (WeakReference<T> weakRef in
_list
)