7 writes to _size
mscorlib (7)
system\collections\arraylist.cs (7)
208
return
_size
++;
271
_size
= 0;
283
la.
_size
= _size;
469
_size
++;
496
_size
+= count;
601
_size
--;
624
_size
-= count;
62 references to _size
mscorlib (62)
system\collections\arraylist.cs (62)
112
if (value <
_size
) {
122
if (
_size
> 0) {
123
Array.Copy(_items, 0, newItems, 0,
_size
);
138
return
_size
;
171
if (index < 0 || index >=
_size
) throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_Index"));
176
if (index < 0 || index >=
_size
) throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_Index"));
205
if (
_size
== _items.Length) EnsureCapacity(
_size
+ 1);
206
_items[
_size
] = value;
216
InsertRange(
_size
, c);
244
if (
_size
- index < count)
268
if (
_size
> 0)
270
Array.Clear(_items, 0,
_size
); // Don't need to doc this but we clear the elements so that the gc can reclaim the references.
282
ArrayList la = new ArrayList(
_size
);
283
la._size =
_size
;
285
Array.Copy(_items, 0, la._items, 0,
_size
);
296
for(int i=0; i<
_size
; i++)
302
for(int i=0; i<
_size
; i++)
324
Array.Copy(_items, 0, array, arrayIndex,
_size
);
332
if (
_size
- index < count)
398
if (
_size
- index < count)
416
return Array.IndexOf((Array)_items, value, 0,
_size
);
429
if (startIndex >
_size
)
433
return Array.IndexOf((Array)_items, value, startIndex,
_size
- startIndex);
446
if (startIndex >
_size
)
448
if (count <0 || startIndex >
_size
- count) throw new ArgumentOutOfRangeException("count", Environment.GetResourceString("ArgumentOutOfRange_Count"));
460
if (index < 0 || index >
_size
) throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_ArrayListInsert"));
464
if (
_size
== _items.Length) EnsureCapacity(
_size
+ 1);
465
if (index <
_size
) {
466
Array.Copy(_items, index, _items, index + 1,
_size
- index);
481
if (index < 0 || index >
_size
) throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_Index"));
487
EnsureCapacity(
_size
+ count);
489
if (index <
_size
) {
490
Array.Copy(_items, index, _items, index + count,
_size
- index);
511
Contract.Ensures(Contract.Result<int>() <
_size
);
512
return LastIndexOf(value,
_size
- 1,
_size
);
526
if (startIndex >=
_size
)
548
if (
_size
== 0) // Special case for an empty list
551
if (startIndex >=
_size
|| count > startIndex + 1)
552
throw new ArgumentOutOfRangeException((startIndex>=
_size
? "startIndex" : "count"), Environment.GetResourceString("ArgumentOutOfRange_BiggerThanCollection"));
596
if (index < 0 || index >=
_size
) throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_Index"));
602
if (index <
_size
) {
603
Array.Copy(_items, index + 1, _items, index,
_size
- index);
605
_items[
_size
] = null;
616
if (
_size
- index < count)
623
int i =
_size
;
625
if (index <
_size
) {
626
Array.Copy(_items, index + count, _items, index,
_size
- index);
628
while (i >
_size
) _items[--i] = null;
665
if (
_size
- index < count)
679
if (index < 0 || index >
_size
- count) throw new ArgumentOutOfRangeException("index", Environment.GetResourceString("ArgumentOutOfRange_Index"));
690
if (
_size
- index < count)
724
if (
_size
- index < count)
759
Object[] array = new Object[
_size
];
760
Array.Copy(_items, 0, array, 0,
_size
);
775
Array array = Array.UnsafeCreateInstance(type,
_size
);
776
Array.Copy(_items, 0, array, 0,
_size
);
790
Capacity =
_size
;
2570
if (index < list.
_size
- 1) {
2576
index =list.
_size
;