8 writes to _items
mscorlib (8)
system\collections\generic\list.cs (8)
53
_items
= _emptyArray;
65
_items
= _emptyArray;
67
_items
= new T[capacity];
84
_items
= _emptyArray;
87
_items
= new T[count];
94
_items
= _emptyArray;
127
_items
= newItems;
130
_items
= _emptyArray;
64 references to _items
mscorlib (64)
system\collections\generic\list.cs (64)
88
c.CopyTo(
_items
, 0);
113
return
_items
.Length;
121
if (value !=
_items
.Length) {
125
Array.Copy(
_items
, 0, newItems, 0, _size);
181
return
_items
[index];
189
_items
[index] = value;
221
if (_size ==
_items
.Length) EnsureCapacity(_size + 1);
222
_items
[_size++] = item;
286
return Array.BinarySearch<T>(
_items
, index, count, item, comparer);
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.
319
if ((Object)
_items
[i] == null)
326
if (c.Equals(
_items
[i], item)) return true;
351
list.
_items
[i] = converter(
_items
[i]);
375
Array.Copy(
_items
, 0, array, arrayIndex, _size);
393
Array.Copy(
_items
, index, array, arrayIndex, count);
398
Array.Copy(
_items
, 0, array, arrayIndex, _size);
406
if (
_items
.Length < min) {
407
int newCapacity =
_items
.Length == 0? _defaultCapacity :
_items
.Length * 2;
427
if(match(
_items
[i])) {
428
return
_items
[i];
442
if(match(
_items
[i])) {
443
list.Add(
_items
[i]);
479
if( match(
_items
[i])) return i;
491
if(match(
_items
[i])) {
492
return
_items
[i];
538
if( match(
_items
[i])) {
557
action(
_items
[i]);
598
Array.Copy(
_items
, index, list.
_items
, 0, count);
615
return Array.IndexOf(
_items
, item, 0, _size);
641
return Array.IndexOf(
_items
, item, index, _size - index);
662
return Array.IndexOf(
_items
, item, index, count);
675
if (_size ==
_items
.Length) EnsureCapacity(_size + 1);
677
Array.Copy(
_items
, index,
_items
, index + 1, _size - index);
679
_items
[index] = item;
717
Array.Copy(
_items
, index,
_items
, index + count, _size - index);
723
Array.Copy(
_items
, 0,
_items
, index, index);
725
Array.Copy(
_items
, index+count,
_items
, index*2, _size-index);
730
itemsToInsert.CopyTo(
_items
, index);
817
return Array.LastIndexOf(
_items
, item, index, count);
853
while( freeIndex < _size && !match(
_items
[freeIndex])) freeIndex++;
859
while( current < _size && match(
_items
[current])) current++;
863
_items
[freeIndex++] =
_items
[current++];
867
Array.Clear(
_items
, freeIndex, _size - freeIndex);
884
Array.Copy(
_items
, index + 1,
_items
, index, _size - index);
886
_items
[_size] = default(T);
909
Array.Copy(
_items
, index + count,
_items
, index, _size - index);
911
Array.Clear(
_items
, _size, count);
941
Array.Reverse(
_items
, index, count);
980
Array.Sort<T>(
_items
, index, count, comparer);
992
Array.Sort(
_items
, 0, _size, comparer);
1003
Array.Copy(
_items
, 0, array, 0, _size);
1017
int threshold = (int)(((double)
_items
.Length) * 0.9);
1030
if( !match(
_items
[i])) {
1163
current = localList.
_items
[index];