1 write to list
System.Drawing (1)
commonui\System\Drawing\Advanced\SystemColorTracker.cs (1)
124
list
= newList;
23 references to list
System.Drawing (23)
commonui\System\Drawing\Advanced\SystemColorTracker.cs (23)
39
Debug.Assert(
list
!= null, "List is null");
40
Debug.Assert(
list
.Length > 0, "INITIAL_SIZE was initialized after list");
42
if (
list
.Length == count) {
58
if (
list
[index] == null)
59
list
[index] = new WeakReference(obj);
61
Debug.Assert(
list
[index].Target == null, "Trying to reuse a weak reference that isn't broken yet: list[" + index + "], length =" +
list
.Length);
62
list
[index].Target = obj;
73
int right =
list
.Length - 1;
76
int length =
list
.Length;
81
while (left < length &&
list
[left].Target != null)
83
while (right >= 0 &&
list
[right].Target == null)
91
WeakReference temp =
list
[left];
92
list
[left] =
list
[right];
93
list
[right] = temp;
99
Debug.Assert(count >= 0 && count <=
list
.Length, "count not a legal index into list");
121
if (count / (float)
list
.Length > EXPAND_THRESHOLD) {
122
WeakReference[] newList = new WeakReference[
list
.Length * EXPAND_FACTOR];
123
list
.CopyTo(newList, 0);
126
if (
list
.Length >= WARNING_SIZE) {
137
Debug.Assert(
list
[i] != null, "null value in active part of list");
138
ISystemColorTracker tracker = (ISystemColorTracker)
list
[i].Target;