11 writes to _size
mscorlib (11)
system\collections\generic\list.cs (11)
89
_size
= count;
93
_size
= 0;
222
_items[
_size
++] = item;
307
_size
= 0;
353
list.
_size
= _size;
599
list.
_size
= count;
680
_size
++;
732
_size
+= count;
869
_size
= freeIndex;
882
_size
--;
907
_size
-= count;
82 references to _size
mscorlib (82)
system\collections\generic\list.cs (82)
116
if (value <
_size
) {
124
if (
_size
> 0) {
125
Array.Copy(_items, 0, newItems, 0,
_size
);
140
return
_size
;
177
if ((uint) index >= (uint)
_size
) {
185
if ((uint) index >= (uint)
_size
) {
221
if (
_size
== _items.Length) EnsureCapacity(
_size
+ 1);
248
InsertRange(
_size
, collection);
281
if (
_size
- index < count)
304
if (
_size
> 0)
306
Array.Clear(_items, 0,
_size
); // Don't need to doc this but we clear the elements so that the gc can reclaim the references.
318
for(int i=0; i<
_size
; i++)
325
for(int i=0; i<
_size
; i++) {
349
List<TOutput> list = new List<TOutput>(
_size
);
350
for( int i = 0; i<
_size
; i++) {
353
list._size =
_size
;
375
Array.Copy(_items, 0, array, arrayIndex,
_size
);
387
if (
_size
- index < count) {
398
Array.Copy(_items, 0, array, arrayIndex,
_size
);
426
for(int i = 0 ; i <
_size
; i++) {
441
for(int i = 0 ; i <
_size
; i++) {
452
return FindIndex(0,
_size
, match);
458
return FindIndex(startIndex,
_size
- startIndex, match);
462
if( (uint)startIndex > (uint)
_size
) {
466
if (count < 0 || startIndex >
_size
- count) {
490
for(int i =
_size
- 1 ; i >= 0; i--) {
501
return FindLastIndex(
_size
- 1,
_size
, match);
518
if(
_size
== 0) {
526
if ( (uint)startIndex >= (uint)
_size
) {
553
for(int i = 0 ; i <
_size
; i++) {
591
if (
_size
- index < count) {
615
return Array.IndexOf(_items, item, 0,
_size
);
636
if (index >
_size
)
641
return Array.IndexOf(_items, item, index,
_size
- index);
654
if (index >
_size
)
657
if (count <0 || index >
_size
- count) ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.count, ExceptionResource.ArgumentOutOfRange_Count);
671
if ((uint) index > (uint)
_size
) {
675
if (
_size
== _items.Length) EnsureCapacity(
_size
+ 1);
676
if (index <
_size
) {
677
Array.Copy(_items, index, _items, index + 1,
_size
- index);
706
if ((uint)index > (uint)
_size
) {
715
EnsureCapacity(
_size
+ count);
716
if (index <
_size
) {
717
Array.Copy(_items, index, _items, index + count,
_size
- index);
725
Array.Copy(_items, index+count, _items, index*2,
_size
-index);
757
if (
_size
== 0) { // Special case for empty list
761
return LastIndexOf(item,
_size
- 1,
_size
);
776
if (index >=
_size
)
805
if (
_size
== 0) { // Special case for empty list
809
if (index >=
_size
) {
853
while( freeIndex <
_size
&& !match(_items[freeIndex])) freeIndex++;
854
if( freeIndex >=
_size
) return 0;
857
while( current <
_size
) {
859
while( current <
_size
&& match(_items[current])) current++;
861
if( current <
_size
) {
867
Array.Clear(_items, freeIndex,
_size
- freeIndex);
868
int result =
_size
- freeIndex;
878
if ((uint)index >= (uint)
_size
) {
883
if (index <
_size
) {
884
Array.Copy(_items, index + 1, _items, index,
_size
- index);
886
_items[
_size
] = default(T);
901
if (
_size
- index < count)
906
int i =
_size
;
908
if (index <
_size
) {
909
Array.Copy(_items, index + count, _items, index,
_size
- index);
911
Array.Clear(_items,
_size
, count);
938
if (
_size
- index < count)
976
if (
_size
- index < count)
990
if(
_size
> 0) {
992
Array.Sort(_items, 0,
_size
, comparer);
1002
T[] array = new T[
_size
];
1003
Array.Copy(_items, 0, array, 0,
_size
);
1018
if(
_size
< threshold ) {
1019
Capacity =
_size
;
1029
for(int i = 0 ; i <
_size
; i++) {
1161
if (version == localList._version && ((uint)index < (uint)localList.
_size
))
1176
index = list.
_size
+ 1;
1189
if( index == 0 || index == list.
_size
+ 1) {