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