7 writes to _items
System.Core (7)
Microsoft\Scripting\Utils\ReadOnlyCollectionBuilder.cs (7)
56
_items
= _emptyArray;
66
_items
= new T[capacity];
79
_items
= new T[count];
84
_items
= new T[DefaultCapacity];
108
_items
= newItems;
110
_items
= _emptyArray;
421
_items
= _emptyArray;
29 references to _items
System.Core (29)
Microsoft\Scripting\Utils\ReadOnlyCollectionBuilder.cs (29)
80
c.CopyTo(
_items
, 0);
98
get { return
_items
.Length; }
102
if (value !=
_items
.Length) {
106
Array.Copy(
_items
, 0, newItems, 0, _size);
131
return Array.IndexOf(
_items
, item, 0, _size);
142
if (_size ==
_items
.Length) {
146
Array.Copy(
_items
, index,
_items
, index + 1, _size - index);
148
_items
[index] = item;
162
Array.Copy(
_items
, index + 1,
_items
, index, _size - index);
164
_items
[_size] = default(T);
176
return
_items
[index];
180
_items
[index] = value;
194
if (_size ==
_items
.Length) {
197
_items
[_size++] = item;
206
Array.Clear(
_items
, 0, _size);
220
if ((Object)
_items
[i] == null) {
228
if (c.Equals(
_items
[i], item)) {
243
Array.Copy(
_items
, 0, array, arrayIndex, _size);
359
Array.Copy(
_items
, 0, array, index, _size);
393
Array.Reverse(
_items
, index, count);
403
Array.Copy(
_items
, 0, array, 0, _size);
416
if (_size ==
_items
.Length) {
417
items =
_items
;
429
if (
_items
.Length < min) {
431
if (
_items
.Length > 0) {
432
newCapacity =
_items
.Length * 2;
502
_current = _builder.
_items
[_index++];