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)
71public int Count => _count; 77if ((uint)index >= (uint)_count) 86if ((uint)index >= (uint)_count) 102_array is null ? 0 : HashCode.Combine(_offset, _count, _array.GetHashCode()); 109System.Array.Copy(_array!, _offset, destination, destinationIndex, _count); 117if (_count > destination._count) 122System.Array.Copy(_array!, _offset, destination._array!, destination._offset, _count); 129obj._array == _array && obj._offset == _offset && obj._count == _count; 135if ((uint)index > (uint)_count) 140return new ArraySegment<T>(_array!, _offset + index, _count - index); 147if ((uint)index > (uint)_count || (uint)count > (uint)(_count - index)) 159if (_count == 0) 164var array = new T[_count]; 165System.Array.Copy(_array!, _offset, array, 0, _count); 181if (index < 0 || index >= _count) 190if (index < 0 || index >= _count) 201int index = System.Array.IndexOf(_array!, item, _offset, _count); 204(index >= _offset && index < _offset + _count)); 220if (index < 0 || index >= _count) 242int index = System.Array.IndexOf(_array!, item, _offset, _count); 245(index >= _offset && index < _offset + _count));