6 writes to _size
System.Collections.NonGeneric (6)
System\Collections\SortedList.cs (6)
84
_size
= 0;
167
_size
= d.Count;
288
_size
= 0;
299
sl.
_size
= _size;
505
_size
++;
515
_size
--;
30 references to _size
System.Collections.NonGeneric (30)
System\Collections\SortedList.cs (30)
177
int i = Array.BinarySearch(keys, 0,
_size
, key, comparer);
208
if (
_size
> 0)
210
Array.Copy(keys, newKeys,
_size
);
211
Array.Copy(values, newValues,
_size
);
219
Debug.Assert(
_size
== 0, "Size is not zero");
233
return
_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.
287
Array.Clear(values, 0,
_size
); // Don't need to doc this but we clear the elements so that the gc can reclaim the references.
296
SortedList sl = new SortedList(
_size
);
297
Array.Copy(keys, sl.keys,
_size
);
298
Array.Copy(values, sl.values,
_size
);
299
sl._size =
_size
;
395
return new SortedListEnumerator(this, 0,
_size
, SortedListEnumerator.DictEntry);
405
return new SortedListEnumerator(this, 0,
_size
, SortedListEnumerator.DictEntry);
457
int i = Array.BinarySearch(keys, 0,
_size
, key, comparer);
479
int ret = Array.BinarySearch(keys, 0,
_size
, key, comparer);
491
return Array.IndexOf(values, value, 0,
_size
);
497
if (
_size
== keys.Length) EnsureCapacity(
_size
+ 1);
498
if (index <
_size
)
500
Array.Copy(keys, index, keys, index + 1,
_size
- index);
501
Array.Copy(values, index, values, index + 1,
_size
- index);
516
if (index <
_size
)
518
Array.Copy(keys, index + 1, keys, index,
_size
- index);
519
Array.Copy(values, index + 1, values, index,
_size
- index);
521
keys[
_size
] = null!;
522
values[
_size
] = null;
567
Capacity =
_size
;
899
get { return sortedList.
_size
; }
1003
get { return sortedList.
_size
; }