4 writes to keys
System.Collections (4)
System\Collections\Generic\SortedList.cs (4)
75
keys
= Array.Empty<TKey>();
91
keys
= new TKey[capacity];
245
keys
= newKeys;
250
keys
= Array.Empty<TKey>();
28 references to keys
System.Collections (28)
System\Collections\Generic\SortedList.cs (28)
155
TKey[] keys = this.
keys
;
158
Debug.Assert(count == this.
keys
.Length);
183
int i = Array.BinarySearch<TKey>(
keys
, 0, _size, key, comparer);
225
return
keys
.Length;
229
if (value !=
keys
.Length)
242
Array.Copy(
keys
, newKeys, _size);
396
Array.Clear(
keys
, 0, _size);
447
KeyValuePair<TKey, TValue> entry = new KeyValuePair<TKey, TValue>(
keys
[i], values[i]);
480
keyValuePairArray[i + index] = new KeyValuePair<TKey, TValue>(
keys
[i], values[i]);
495
objects[i + index] = new KeyValuePair<TKey, TValue>(
keys
[i], values[i]);
510
int newCapacity =
keys
.Length == 0 ? DefaultCapacity :
keys
.Length * 2;
565
return
keys
[index];
584
int i = Array.BinarySearch<TKey>(
keys
, 0, _size, key, comparer);
642
int ret = Array.BinarySearch<TKey>(
keys
, 0, _size, key, comparer);
659
if (_size ==
keys
.Length) EnsureCapacity(_size + 1);
662
Array.Copy(
keys
, index,
keys
, index + 1, _size - index);
665
keys
[index] = key;
693
Array.Copy(
keys
, index + 1,
keys
, index, _size - index);
698
keys
[_size] = default(TKey)!;
736
int threshold = (int)(
keys
.Length * 0.9);
798
_key = _sortedList.
keys
[_index];
899
_currentKey = _sortedList.
keys
[_index];
1049
Array.Copy(_dict.
keys
, 0, array, arrayIndex, _dict.Count);
1060
Array.Copy(_dict.
keys
, 0, array!, arrayIndex, _dict.Count);
1095
int i = Array.BinarySearch<TKey>(_dict.
keys
, 0,