5 writes to _size
System (5)
compmod\system\collections\generic\sortedlist.cs (5)
95
_size
= 0;
171
_size
= dictionary.Count;
378
_size
= 0;
610
_size
++;
630
_size
--;
28 references to _size
System (28)
compmod\system\collections\generic\sortedlist.cs (28)
179
int i = Array.BinarySearch<TKey>(keys, 0,
_size
, key, comparer);
218
if (value <
_size
) {
225
if (
_size
> 0) {
226
Array.Copy(keys, 0, newKeys, 0,
_size
);
227
Array.Copy(values, 0, newValues, 0,
_size
);
273
return
_size
;
376
Array.Clear(keys, 0,
_size
);
377
Array.Clear(values, 0,
_size
);
488
if (index < 0 || index >=
_size
)
515
if (index < 0 || index >=
_size
) ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.index, ExceptionResource.ArgumentOutOfRange_Index);
534
int i = Array.BinarySearch<TKey>(keys, 0,
_size
, key, comparer);
587
int ret = Array.BinarySearch<TKey>(keys, 0,
_size
, key, comparer);
598
return Array.IndexOf(values, value, 0,
_size
);
603
if (
_size
== keys.Length) EnsureCapacity(
_size
+ 1);
604
if (index <
_size
) {
605
Array.Copy(keys, index, keys, index + 1,
_size
- index);
606
Array.Copy(values, index, values, index + 1,
_size
- index);
629
if (index < 0 || index >=
_size
) ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.index, ExceptionResource.ArgumentOutOfRange_Index);
631
if (index <
_size
) {
632
Array.Copy(keys, index + 1, keys, index,
_size
- index);
633
Array.Copy(values, index + 1, values, index,
_size
- index);
635
keys[
_size
] = default(TKey);
636
values[
_size
] = default(TValue);
668
if(
_size
< threshold ) {
669
Capacity =
_size
;
928
get { return _dict.
_size
; }
1028
get { return _dict.
_size
; }