4 writes to _capacity
System.Private.CoreLib (4)
src\libraries\System.Private.CoreLib\src\System\IO\MemoryStream.cs (4)
50_capacity = capacity; 67_length = _capacity = buffer.Length; 93_length = _capacity = index + count; 288_capacity = value;
9 references to _capacity
System.Private.CoreLib (9)
src\libraries\System.Private.CoreLib\src\System\IO\MemoryStream.cs (9)
136if (value > _capacity) 142if (newCapacity < _capacity * 2) 144newCapacity = _capacity * 2; 149if ((uint)(_capacity * 2) > Array.MaxLength) 258return _capacity - _origin; 273if (_expandable && value != _capacity) 593if (i > _capacity) 644if (i > _capacity) 726if (newLength >= _capacity)