4 writes to keys
System (4)
compmod\system\collections\generic\sortedlist.cs (4)
93
keys
= emptyKeys;
109
keys
= new TKey[capacity];
229
keys
= newKeys;
233
keys
= emptyKeys;
28 references to keys
System (28)
compmod\system\collections\generic\sortedlist.cs (28)
168
dictionary.Keys.CopyTo(
keys
, 0);
170
Array.Sort<TKey, TValue>(
keys
, values, comparer);
179
int i = Array.BinarySearch<TKey>(
keys
, 0, _size, key, comparer);
214
return
keys
.Length;
217
if (value !=
keys
.Length) {
226
Array.Copy(
keys
, 0, newKeys, 0, _size);
376
Array.Clear(
keys
, 0, _size);
420
KeyValuePair<TKey, TValue> entry = new KeyValuePair<TKey, TValue>(
keys
[i],values[i]);
449
keyValuePairArray[i + arrayIndex] = new KeyValuePair<TKey, TValue>(
keys
[i],values[i]);
460
objects[i + arrayIndex] = new KeyValuePair<TKey, TValue>(
keys
[i],values[i]);
477
int newCapacity =
keys
.Length == 0? _defaultCapacity:
keys
.Length * 2;
516
return
keys
[index];
534
int i = Array.BinarySearch<TKey>(
keys
, 0, _size, key, comparer);
587
int ret = Array.BinarySearch<TKey>(
keys
, 0, _size, key, comparer);
603
if (_size ==
keys
.Length) EnsureCapacity(_size + 1);
605
Array.Copy(
keys
, index,
keys
, index + 1, _size - index);
608
keys
[index] = key;
632
Array.Copy(
keys
, index + 1,
keys
, index, _size - index);
635
keys
[_size] = default(TKey);
667
int threshold = (int)(((double)
keys
.Length) * 0.9);
729
key = _sortedList.
keys
[index];
818
currentKey = _sortedList.
keys
[index];
957
Array.Copy(_dict.
keys
, 0, array, arrayIndex, _dict.Count);
966
Array.Copy(_dict.
keys
, 0, array, arrayIndex, _dict.Count);
998
int i = Array.BinarySearch<TKey>(_dict.
keys
, 0,