2 writes to _count
System.Private.CoreLib (2)
src\libraries\System.Private.CoreLib\src\System\ArraySegment.cs (2)
51
_count
= array.Length;
64
_count
= count;
24 references to _count
System.Private.CoreLib (24)
src\libraries\System.Private.CoreLib\src\System\ArraySegment.cs (24)
71
public int Count =>
_count
;
77
if ((uint)index >= (uint)
_count
)
86
if ((uint)index >= (uint)
_count
)
102
_array is null ? 0 : HashCode.Combine(_offset,
_count
, _array.GetHashCode());
109
System.Array.Copy(_array!, _offset, destination, destinationIndex,
_count
);
117
if (
_count
> destination.
_count
)
122
System.Array.Copy(_array!, _offset, destination._array!, destination._offset,
_count
);
129
obj._array == _array && obj._offset == _offset && obj.
_count
==
_count
;
135
if ((uint)index > (uint)
_count
)
140
return new ArraySegment<T>(_array!, _offset + index,
_count
- index);
147
if ((uint)index > (uint)
_count
|| (uint)count > (uint)(
_count
- index))
159
if (
_count
== 0)
164
var array = new T[
_count
];
165
System.Array.Copy(_array!, _offset, array, 0,
_count
);
181
if (index < 0 || index >=
_count
)
190
if (index < 0 || index >=
_count
)
201
int index = System.Array.IndexOf(_array!, item, _offset,
_count
);
204
(index >= _offset && index < _offset +
_count
));
220
if (index < 0 || index >=
_count
)
242
int index = System.Array.IndexOf(_array!, item, _offset,
_count
);
245
(index >= _offset && index < _offset +
_count
));