6 writes to _size
mscorlib (6)
system\collections\sortedlist.cs (6)
99
_size
= 0;
174
_size
= d.Count;
284
_size
= 0;
296
sl.
_size
= _size;
493
_size
++;
503
_size
--;
30 references to _size
mscorlib (30)
system\collections\sortedlist.cs (30)
183
int i = Array.BinarySearch(keys, 0,
_size
, key, comparer);
209
if (
_size
> 0) {
210
Array.Copy(keys, 0, newKeys, 0,
_size
);
211
Array.Copy(values, 0, newValues, 0,
_size
);
218
Contract.Assert(
_size
== 0, "Size is not zero");
230
return
_size
;
282
Array.Clear(keys, 0,
_size
); // Don't need to doc this but we clear the elements so that the gc can reclaim the references.
283
Array.Clear(values, 0,
_size
); // Don't need to doc this but we clear the elements so that the gc can reclaim the references.
293
SortedList sl = new SortedList(
_size
);
294
Array.Copy(keys, 0, sl.keys, 0,
_size
);
295
Array.Copy(values, 0, sl.values, 0,
_size
);
296
sl._size =
_size
;
384
return new SortedListEnumerator(this, 0,
_size
, SortedListEnumerator.DictEntry);
393
return new SortedListEnumerator(this, 0,
_size
, SortedListEnumerator.DictEntry);
449
int i = Array.BinarySearch(keys, 0,
_size
, key, comparer);
470
int ret = Array.BinarySearch(keys, 0,
_size
, key, comparer);
481
return Array.IndexOf(values, value, 0,
_size
);
486
if (
_size
== keys.Length) EnsureCapacity(
_size
+ 1);
487
if (index <
_size
) {
488
Array.Copy(keys, index, keys, index + 1,
_size
- index);
489
Array.Copy(values, index, values, index + 1,
_size
- index);
504
if (index <
_size
) {
505
Array.Copy(keys, index + 1, keys, index,
_size
- index);
506
Array.Copy(values, index + 1, values, index,
_size
- index);
508
keys[
_size
] = null;
509
values[
_size
] = null;
553
Capacity =
_size
;
833
get { return sortedList.
_size
; }
921
get { return sortedList.
_size
; }