4 writes to keys
System.Collections.NonGeneric (4)
System\Collections\SortedList.cs (4)
82
keys
= Array.Empty<object>();
99
keys
= new object[initialCapacity];
213
keys
= newKeys;
220
keys
= Array.Empty<object>();
28 references to keys
System.Collections.NonGeneric (28)
System\Collections\SortedList.cs (28)
157
d.Keys.CopyTo(
keys
, 0);
162
Array.Sort(
keys
, comparer);
163
for (int i = 0; i <
keys
.Length; i++)
165
values[i] = d[
keys
[i]];
177
int i = Array.BinarySearch(
keys
, 0, _size, key, comparer);
193
return
keys
.Length;
202
if (value !=
keys
.Length)
210
Array.Copy(
keys
, newKeys, _size);
286
Array.Clear(
keys
, 0, _size); // Don't need to doc this but we clear the elements so that the gc can reclaim the references.
297
Array.Copy(
keys
, sl.
keys
, _size);
346
DictionaryEntry entry = new DictionaryEntry(
keys
[i], values[i]);
360
array[i] = new DebugViewDictionaryItem<object, object?>(
keys
[i], values[i]);
371
int newCapacity =
keys
.Length == 0 ? 16 :
keys
.Length * 2;
413
return
keys
[index];
457
int i = Array.BinarySearch(
keys
, 0, _size, key, comparer);
479
int ret = Array.BinarySearch(
keys
, 0, _size, key, comparer);
497
if (_size ==
keys
.Length) EnsureCapacity(_size + 1);
500
Array.Copy(
keys
, index,
keys
, index + 1, _size - index);
503
keys
[index] = key;
518
Array.Copy(
keys
, index + 1,
keys
, index, _size - index);
521
keys
[_size] = null!;
829
_key = _sortedList.
keys
[_index];
944
Array.Copy(sortedList.
keys
, 0, array!, arrayIndex, sortedList.Count);
973
int i = Array.BinarySearch(sortedList.
keys
, 0,