6 writes to _size
System.Net.Http (6)
System\Net\Http\Headers\ObjectCollection.cs (6)
47
_size
= 1;
58
_size
= 2;
80
_size
= size + 1;
87
_size
= 0;
123
_size
= 0;
132
_size
--;
18 references to _size
System.Net.Http (18)
System\Net\Http\Headers\ObjectCollection.cs (18)
32
public int Count =>
_size
;
53
Debug.Assert(
_size
== 1);
63
int size =
_size
;
72
Debug.Assert(
_size
> 0);
73
Debug.Assert(
_size
== array.Length);
91
_size
<= 0 ? false :
93
_items is T[] items && Array.IndexOf(items, item, 0,
_size
) != -1;
99
Array.Copy(items, 0, array, arrayIndex,
_size
);
103
Debug.Assert(
_size
== 0 ||
_size
== 1);
104
if (array is null ||
_size
> array.Length - arrayIndex)
109
else if (
_size
== 1)
129
int index = Array.IndexOf(items, item, 0,
_size
);
133
if (index <
_size
)
135
Array.Copy(items, index + 1, items, index,
_size
- index);
137
items[
_size
] = null!;
169
if ((uint)_index < (uint)list.
_size
)
176
_index = _list.
_size
+ 1;